User-Agent shouldn't contain a space, change "MusicBrainz Picard" to "MusicBrainz-Picard"

This commit is contained in:
Lukáš Lalinský
2007-04-30 18:17:09 +02:00
parent 1b0ab882f5
commit dfe9f71b2c

View File

@@ -206,7 +206,7 @@ class XmlWebService(QtNetwork.QHttp):
header.setValue("Host", "%s" % host)
else:
header.setValue("Host", "%s:%d" % (host, port))
header.setValue("User-Agent", "MusicBrainz Picard/%s" % version_string)
header.setValue("User-Agent", "MusicBrainz-Picard/%s" % version_string)
header.setValue("Connection", "Keep-Alive")
if method == "POST":
header.setContentType("application/x-www-form-urlencoded")