Skip to content

Commit

Permalink
added text/xml header for IIS bug
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanDotPro committed Dec 7, 2010
1 parent 3c8b6b9 commit c48fda1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion screenshot
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ hash = hashlib.sha1()
hash.update(data)
hash.update(token)

headers = { 'X-Username': user, 'X-Signature': hash.hexdigest() }
headers = { 'X-Username': user, 'X-Signature': hash.hexdigest(), 'Content-Type': 'text/xml' }

# upload the url and give the screenshot url to the user
url = urllib2.urlopen(urllib2.Request(postURL, data, headers)).read();
Expand Down
2 changes: 1 addition & 1 deletion screenshot-mac
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ hash = hashlib.sha1()
hash.update(data)
hash.update(token)

headers = { 'X-Username': user, 'X-Signature': hash.hexdigest() }
headers = { 'X-Username': user, 'X-Signature': hash.hexdigest(), 'Content-Type': 'text/xml' }

# upload the url and give the screenshot url to the user
url = urllib2.urlopen(urllib2.Request(postURL, data, headers)).read();
Expand Down

0 comments on commit c48fda1

Please sign in to comment.