Move HTTP basic auth into URLRequest
Review Request #8911 — Created April 21, 2017 and submitted
The logic for adding HTTP basic auth headers to a request has been moved
into theURLRequest
class since it is generally useful. In addition,
theHostingServiceClient._build_request
method has been removed since
it was used in one place; its definition has been moved inline.
Ran unit tests.
- Diff:
-
Revision 2 (+29 -19)
Checks run (2 succeeded, 1 failed with error)
JSHint
passed.
PEP8 Style Checker
internal error.
Pyflakes
passed.
- Change Summary:
-
Addressed Christian's issues
- Diff:
-
Revision 3 (+279 -38)
Checks run (3 succeeded)
JSHint
passed.
PEP8 Style Checker
passed.
Pyflakes
passed.
- Change Summary:
-
Post correct patch
- Diff:
-
Revision 4 (+29 -23)
Checks run (3 succeeded)
JSHint
passed.
PEP8 Style Checker
passed.
Pyflakes
passed.