diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2012-06-08 19:37:29 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2012-06-08 19:37:29 +0000 |
commit | 8735a5c54cf26dd5b5b686850f800a4aed49ff78 (patch) | |
tree | ac7404dae428201298c7fed6e3b5360443763694 /community/picard | |
parent | 7d11e9346ebd0f9c378952caee0c82d6ca815f4e (diff) |
Fri Jun 8 19:37:17 UTC 2012
Diffstat (limited to 'community/picard')
-rw-r--r-- | community/picard/typeheader.patch | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/community/picard/typeheader.patch b/community/picard/typeheader.patch deleted file mode 100644 index b34852673..000000000 --- a/community/picard/typeheader.patch +++ /dev/null @@ -1,25 +0,0 @@ -diff -Naur old/picard/webservice.py new/picard/webservice.py ---- old/picard/webservice.py 2011-10-23 19:15:29.000000000 +0200 -+++ new/picard/webservice.py 2012-04-28 17:43:17.562422696 +0200 -@@ -149,8 +149,11 @@ - url.setPassword(self.config.setting["password"]) - request = QtNetwork.QNetworkRequest(url) - request.setRawHeader("User-Agent", "MusicBrainz-Picard/%s" % version_string) -- if method == "POST" and host == self.config.setting["server_host"]: -- request.setHeader(QtNetwork.QNetworkRequest.ContentTypeHeader, "application/xml; charset=utf-8") -+ if data is not None: -+ if method == "POST" and host == self.config.setting["server_host"]: -+ request.setHeader(QtNetwork.QNetworkRequest.ContentTypeHeader, "application/xml; charset=utf-8") -+ else: -+ request.setHeader(QtNetwork.QNetworkRequest.ContentTypeHeader, "application/x-www-form-urlencoded") - send = self._request_methods[method] - reply = send(request, data) if data is not None else send(request) - key = (host, port) -@@ -370,6 +373,7 @@ - def _encode_acoustid_args(self, args): - filters = [] - args['client'] = ACOUSTID_KEY -+ args['clientversion'] = version_string - args['format'] = 'xml' - for name, value in args.items(): - value = str(QUrl.toPercentEncoding(value)) |