Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: maiaXmlRpcClient.cpp
- ===================================================================
- --- maiaXmlRpcClient.cpp (revision 18)
- +++ maiaXmlRpcClient.cpp (working copy)
- @@ -37,6 +37,13 @@
- MaiaXmlRpcClient::MaiaXmlRpcClient(QUrl url, QObject* parent) : QObject(parent),
- manager(this), request(url)
- {
- + if( url.userName().length() > 0 ) {
- + //create autorization
- + QString s = url.userName() + QString(":") + url.password();
- + QByteArray cs = "Basic " + s.toAscii().toBase64();
- + request.setRawHeader("Authorization", cs);
- + //qDebug() << QString("[LibMaia] autorize with [ %1 ]").arg( QString(cs));
- + }
- init();
- setUrl(url);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement