Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: chrome/browser/resources/chromeos/chromevox/tools/chromevox_webstore_util.py

Issue 515723005: Make a few fixes to the ChromeVox webstore upload script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/chromeos/chromevox/tools/chromevox_webstore_util.py
diff --git a/chrome/browser/resources/chromeos/chromevox/tools/chromevox_webstore_util.py b/chrome/browser/resources/chromeos/chromevox/tools/chromevox_webstore_util.py
index f6124c3240b4040ea4dcc907f3b87a7993d8c434..1168b910ebcddb3e9dfcfb46cb1a4b7c8a67d86e 100755
--- a/chrome/browser/resources/chromeos/chromevox/tools/chromevox_webstore_util.py
+++ b/chrome/browser/resources/chromeos/chromevox/tools/chromevox_webstore_util.py
@@ -55,6 +55,7 @@ def GetAuthCode():
print 'Navigating to %s' % auth_url
webbrowser.open(auth_url)
httpd.handle_request()
+ httpd.server_close()
return httpd.code
def GetOauthToken(code, client_secret):
@@ -90,7 +91,7 @@ def SendPostCommand(command, client_secret, header_additions = {}, body=None):
headers = GetPopulatedHeader(client_secret)
headers = dict(headers.items() + header_additions.items())
conn = httplib.HTTPSConnection(API_ENDPOINT_DOMAIN)
- conn.request('PUT', command, body, headers)
+ conn.request('POST', command, body, headers)
return conn.getresponse()
def GetUploadStatus(client_secret):

Powered by Google App Engine
This is Rietveld 408576698