Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added text/xml header for IIS bug

  • Loading branch information...
commit c48fda1da37570b08bf5dc52cbc08a0a7b35ccdb 1 parent 3c8b6b9
@EvanDotPro authored
Showing with 2 additions and 2 deletions.
  1. +1 −1  screenshot
  2. +1 −1  screenshot-mac
View
2  screenshot
@@ -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();
View
2  screenshot-mac
@@ -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();
Please sign in to comment.
Something went wrong with that request. Please try again.