mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
In the old code the self.__hostname would be overwritten with uploads.github.com but it could not be correctly re-set to api.github.com after completing the upload Create a separate connection if hostname or port differ in requestBlobAndCheck in the end this became quite a large overhaul, to also make this change generic for e.g. connecting to status.github.com and similar methods ~~not sure if tests need (more) updating, if so I will update the PR accordingly~~
12 lines
476 B
Plaintext
12 lines
476 B
Plaintext
https
|
|
GET
|
|
status.github.com
|
|
None
|
|
/api/last-message.json
|
|
{'Authorization': 'Basic login_and_password_removed', 'User-Agent': 'PyGithub/Python'}
|
|
None
|
|
200
|
|
[('status', '200 OK'), ('content-length', '93'), ('vary', 'Accept-Encoding'), ('server', 'GitHub.com'), ('connection', 'keep-alive'), ('date', 'Fri, 06 Sep 2013 08:34:01 GMT'), ('content-type', 'application/json;charset=utf-8')]
|
|
{"status":"good","body":"Everything operating normally.","created_on":"2013-09-01T15:41:46Z"}
|
|
|