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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py

Issue 2691953003: [WPT Export] Remove all newlines in GitHub auth header (Closed)
Patch Set: Created 3 years, 10 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: third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py
index c5ab1ff4aebc19d97839f8290d66a7a03d6a5397..f6f2aaf526f4028a6a65829872e3bbad1baf7853 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/w3c/wpt_github.py
@@ -22,7 +22,7 @@ class WPTGitHub(object):
assert self.user and self.token
def auth_token(self):
- return base64.encodestring('{}:{}'.format(self.user, self.token)).strip()
+ return base64.encodestring('{}:{}'.format(self.user, self.token)).replace('\n', '')
qyearsley 2017/02/13 23:29:12 Or, as just discussed: base64.b64encode('{}:{}'.fo
def request(self, path, method, body=None):
assert path.startswith('/')
« 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