Skip to content
Snippets Groups Projects
Commit 6723ad2f authored by ale's avatar ale
Browse files

fix Request creation

parent 97cb21e4
No related branches found
No related tags found
No related merge requests found
...@@ -32,7 +32,8 @@ class MetadataFixer(object): ...@@ -32,7 +32,8 @@ class MetadataFixer(object):
req = urllib2.Request( req = urllib2.Request(
'%s?api_key=%s' % (self.ECHONEST_API_URL, self.api_key), '%s?api_key=%s' % (self.ECHONEST_API_URL, self.api_key),
[('Content-Type', 'application/octet-stream')]) data=json_fp,
headers={'Content-Type': 'application/octet-stream'})
try: try:
result = json.loads(urllib2.urlopen(req).read()) result = json.loads(urllib2.urlopen(req).read())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment