Title: Bugfix: use apparent_encoding if encoding is set to None by maiiku · Pull Request #91 · intercom/python-intercom · GitHub
Open Graph Title: Bugfix: use apparent_encoding if encoding is set to None by maiiku · Pull Request #91 · intercom/python-intercom
X Title: Bugfix: use apparent_encoding if encoding is set to None by maiiku · Pull Request #91 · intercom/python-intercom
Description: Defeat value for encoding attribute in class requests.Response is None. If server doesn't set it to something useful (ie on 202 responses) it remains None and gets passed to decode() and thus fails. Class requests. Response has very nice fallback, apparent_encoding, that is provided by the chardet library and can come in handy here.
Open Graph Description: Defeat value for encoding attribute in class requests.Response is None. If server doesn't set it to something useful (ie on 202 responses) it remains None and gets passed to decode() and thus f...
X Description: Defeat value for encoding attribute in class requests.Response is None. If server doesn't set it to something useful (ie on 202 responses) it remains None and gets passed to decode() and th...
Opengraph URL: https://github.com/intercom/python-intercom/pull/91
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0a62575c-1984-57f4-298f-962d33aec5f8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EE3A:A285F:F101AA:13EF56E:69813F8C |
| html-safe-nonce | 8a13d8c82d8b6ee833218af0fa01f8d439e37fe5b00a2986520462a25deacbe1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRTNBOkEyODVGOkYxMDFBQToxM0VGNTZFOjY5ODEzRjhDIiwidmlzaXRvcl9pZCI6IjU4NTE0MTQ2OTc5NjE2Njg0OTIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 977f0791ed54a66492abb4fb73bae268db6f6f39f5f7c3edfccdf80c02f4da68 |
| hovercard-subject-tag | pull_request:34994625 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/intercom/python-intercom/pull/91/files |
| twitter:image | https://avatars.githubusercontent.com/u/1031355?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1031355?s=400&v=4 |
| og:image:alt | Defeat value for encoding attribute in class requests.Response is None. If server doesn't set it to something useful (ie on 202 responses) it remains None and gets passed to decode() and thus f... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 39fe8101494cbb823c09b619b68c80cd4d05ab7279997038dbe06bb91608abe1 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/intercom/python-intercom git https://github.com/intercom/python-intercom.git |
| octolytics-dimension-user_id | 6585 |
| octolytics-dimension-user_login | intercom |
| octolytics-dimension-repository_id | 3619880 |
| octolytics-dimension-repository_nwo | intercom/python-intercom |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3619880 |
| octolytics-dimension-repository_network_root_nwo | intercom/python-intercom |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d5b34a4e4898b066c629879feb4b184bc471d6a7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width