Commit 8ca3d9a
committed
Fix broken basic auth with long username/password
With long usernames and passwords (like those produced by Learning
Locker), the base64.encodestring produces multiline digest for the Auth
header, thus breaking the requests. This patch uses the better
b64encode, which doesn't add any spurious newlines.1 parent a3fb50b commit 8ca3d9a
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
82 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| |||
0 commit comments