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

Unified Diff: rietveld.py

Issue 7075029: Pass a dict when no extra_headers is specified to upload.py. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 9 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rietveld.py
diff --git a/rietveld.py b/rietveld.py
index 0cf6ed12f6de3531e9d56112641732e7f6ca60ff..4c4e8a3d7ba17c48d8f7260a4942e6aaf25d8232 100644
--- a/rietveld.py
+++ b/rietveld.py
@@ -48,7 +48,7 @@ class Rietveld(object):
self.rpc_server = upload.HttpRpcServer(
self.url,
get_creds,
- extra_headers=extra_headers)
+ extra_headers=extra_headers or {})
else:
self.rpc_server = upload.GetRpcServer(url, email)
self._xsrf_token = None
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698