Skip to content
Permalink
Browse files
FIX: Set Content-type to 'text/xml' for OSM uploads (fixes #3307)
  • Loading branch information
koying committed Dec 31, 2011
1 parent 2380b2f commit 212c3c8
Showing 1 changed file with 1 addition and 0 deletions.
@@ -253,6 +253,7 @@ bool Downloader::request(const QString& Method, const QUrl& url, const QString&
QHttpRequestHeader Header(Method,sReq);
Header.setValue("Host",url.host()+':'+QString::number(url.port(80)));
Header.setValue("User-Agent", USER_AGENT);
Header.setValue("Content-Type", "text/xml");

QString auth = QString("%1:%2").arg(User).arg(Password);
QByteArray ba_auth = auth.toUtf8().toBase64();

0 comments on commit 212c3c8

Please sign in to comment.