René's URL Explorer Experiment


Title: Update http_transport.py by kevsta89 · Pull Request #434 · python-beaver/python-beaver · GitHub

Open Graph Title: Update http_transport.py by kevsta89 · Pull Request #434 · python-beaver/python-beaver

X Title: Update http_transport.py by kevsta89 · Pull Request #434 · python-beaver/python-beaver

Description: The object edata is a string and when this is sent using 'r = requests.post(url=self._url, data=edata)' no content-type is sent by requests to the receiving web service. If a dict object was set instead requests would detect this and automatically apply a content-type. This change checks if edata can be decoded as json and if it can adds appropriate header with content-type. If not it still adds a content-type to make the request more robust for the receiving server. Prior to this change requests was seeing the status_code as a 500, even though it wasn't, because the reply from the web service had no content-type in the header since it didn't know what content-type it had received.

Open Graph Description: The object edata is a string and when this is sent using 'r = requests.post(url=self._url, data=edata)' no content-type is sent by requests to the receiving web service. If a dict object wa...

X Description: The object edata is a string and when this is sent using 'r = requests.post(url=self._url, data=edata)' no content-type is sent by requests to the receiving web service. If a dict o...

Opengraph URL: https://github.com/python-beaver/python-beaver/pull/434

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:dc33c3c7-c71e-e9f8-c9d9-c3d6bb654768
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9F72:30A418:1889960:1F76B55:6975BFE8
html-safe-nonce121f7f4ca07600ca9342389e24b48f5787c42ed228b45aa8392bcb97984b14de
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjcyOjMwQTQxODoxODg5OTYwOjFGNzZCNTU6Njk3NUJGRTgiLCJ2aXNpdG9yX2lkIjoiMzMxMjUzNjExNzcwNTAzMTY1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacab14b53b4c82c9215349683a7c42bbfca84ba800eb0e4f3f4af1f4e5fcccabff
hovercard-subject-tagpull_request:267275959
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python-beaver/python-beaver/pull/434/files
twitter:imagehttps://avatars.githubusercontent.com/u/34291050?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/34291050?s=400&v=4
og:image:altThe object edata is a string and when this is sent using 'r = requests.post(url=self._url, data=edata)' no content-type is sent by requests to the receiving web service. If a dict object wa...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python-beaver/python-beaver git https://github.com/python-beaver/python-beaver.git
octolytics-dimension-user_id16486652
octolytics-dimension-user_loginpython-beaver
octolytics-dimension-repository_id5171841
octolytics-dimension-repository_nwopython-beaver/python-beaver
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id5171841
octolytics-dimension-repository_network_root_nwopython-beaver/python-beaver
turbo-body-classeslogged-out env-production page-responsive
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release488b30e96dfd057fbbe44c6665ccbc030b729dde
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-beaver%2Fpython-beaver%2Fpull%2F434%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-beaver%2Fpython-beaver%2Fpull%2F434%2Ffiles
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python-beaver%2Fpython-beaver
Reloadhttps://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files
Reloadhttps://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files
Reloadhttps://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files
python-beaver https://patch-diff.githubusercontent.com/python-beaver
python-beaverhttps://patch-diff.githubusercontent.com/python-beaver/python-beaver
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-beaver%2Fpython-beaver
Fork 166 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-beaver%2Fpython-beaver
Star 552 https://patch-diff.githubusercontent.com/login?return_to=%2Fpython-beaver%2Fpython-beaver
Code https://patch-diff.githubusercontent.com/python-beaver/python-beaver
Issues 17 https://patch-diff.githubusercontent.com/python-beaver/python-beaver/issues
Pull requests 13 https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pulls
Actions https://patch-diff.githubusercontent.com/python-beaver/python-beaver/actions
Projects 0 https://patch-diff.githubusercontent.com/python-beaver/python-beaver/projects
Security 0 https://patch-diff.githubusercontent.com/python-beaver/python-beaver/security
Insights https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pulse
Code https://patch-diff.githubusercontent.com/python-beaver/python-beaver
Issues https://patch-diff.githubusercontent.com/python-beaver/python-beaver/issues
Pull requests https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pulls
Actions https://patch-diff.githubusercontent.com/python-beaver/python-beaver/actions
Projects https://patch-diff.githubusercontent.com/python-beaver/python-beaver/projects
Security https://patch-diff.githubusercontent.com/python-beaver/python-beaver/security
Insights https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pulse
Sign up for GitHub https://patch-diff.githubusercontent.com/signup?return_to=%2Fpython-beaver%2Fpython-beaver%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://patch-diff.githubusercontent.com/login?return_to=%2Fpython-beaver%2Fpython-beaver%2Fissues%2Fnew%2Fchoose
kevsta89https://patch-diff.githubusercontent.com/kevsta89
python-beaver:masterhttps://patch-diff.githubusercontent.com/python-beaver/python-beaver/tree/master
kevsta89:masterhttps://patch-diff.githubusercontent.com/kevsta89/python-beaver/tree/master
Conversation 3 https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434
Commits 2 https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/commits
Checks 0 https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/checks
Files changed https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files
Update http_transport.py https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files#top
Show all changes 2 commits https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files
d4fb4e6 Update http_transport.py kevsta89 Apr 4, 2019 https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/commits/d4fb4e64455814866ff4a3866aed649eb755cc67
a6bdb4d Merge pull request #1 from kevsta89/kevsta89-content-type kevsta89 Apr 4, 2019 https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/commits/a6bdb4d641358c3291a93b5845ed822b565f8f25
Clear filters https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files
Please reload this pagehttps://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files
beaver/transports/http_transport.pyhttps://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files#diff-f75c2c190dd84fe4196fd50b448e2026107a40750abb850d1860be2ba658a88e
View file https://patch-diff.githubusercontent.com/python-beaver/python-beaver/blob/a6bdb4d641358c3291a93b5845ed822b565f8f25/beaver/transports/http_transport.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/{{ revealButtonHref }}
https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files#diff-f75c2c190dd84fe4196fd50b448e2026107a40750abb850d1860be2ba658a88e
https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files#diff-f75c2c190dd84fe4196fd50b448e2026107a40750abb850d1860be2ba658a88e
https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files#diff-f75c2c190dd84fe4196fd50b448e2026107a40750abb850d1860be2ba658a88e
https://patch-diff.githubusercontent.com/python-beaver/python-beaver/pull/434/files#diff-f75c2c190dd84fe4196fd50b448e2026107a40750abb850d1860be2ba658a88e
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.