René's URL Explorer Experiment


Title: Skip adding default content-type header 'application/x-www-form-urlencoded' if content is null · Issue #1083 · scribejava/scribejava · GitHub

Open Graph Title: Skip adding default content-type header 'application/x-www-form-urlencoded' if content is null · Issue #1083 · scribejava/scribejava

X Title: Skip adding default content-type header 'application/x-www-form-urlencoded' if content is null · Issue #1083 · scribejava/scribejava

Description: Dear ScribeJava, Library: https://github.com/scribejava/scribejava/tree/master/scribejava-httpclient-apache While building the request object: scribejava/scribejava-httpclient-apache/src/main/java/com/github/scribejava/httpclient/apache/...

Open Graph Description: Dear ScribeJava, Library: https://github.com/scribejava/scribejava/tree/master/scribejava-httpclient-apache While building the request object: scribejava/scribejava-httpclient-apache/src/main/java/...

X Description: Dear ScribeJava, Library: https://github.com/scribejava/scribejava/tree/master/scribejava-httpclient-apache While building the request object: scribejava/scribejava-httpclient-apache/src/main/java/...

Opengraph URL: https://github.com/scribejava/scribejava/issues/1083

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Skip adding default content-type header 'application/x-www-form-urlencoded' if content is null","articleBody":"Dear ScribeJava,\n\nLibrary: https://github.com/scribejava/scribejava/tree/master/scribejava-httpclient-apache\n\nWhile building the request object:\nhttps://github.com/scribejava/scribejava/blob/8970e8eeb0aff840d0b223890e9c392ee19218f7/scribejava-httpclient-apache/src/main/java/com/github/scribejava/httpclient/apache/ApacheHttpClient.java#L85\n\nI would like to ask you add a condition while adding the default 'Content-Type' header while preparing the requests, to verify the entity and if it's null then skip adding default 'Content-Type' header\n```Java\nprivate \u003cT\u003e Future\u003cT\u003e doExecuteAsync(String userAgent, Map\u003cString, String\u003e headers, Verb httpVerb,\n            String completeUrl, HttpEntity entity, OAuthAsyncRequestCallback\u003cT\u003e callback,\n            OAuthRequest.ResponseConverter\u003cT\u003e converter) {\n        final RequestBuilder builder = getRequestBuilder(httpVerb);\n        builder.setUri(completeUrl);\n\n        if (entity != null \u0026\u0026 httpVerb.isPermitBody()) {\n            if (!headers.containsKey(CONTENT_TYPE)) {\n                builder.addHeader(CONTENT_TYPE, DEFAULT_CONTENT_TYPE);\n            }\n            builder.setEntity(entity);\n        }\n```\n\n just like the implementation of OkHttpClient lib: https://github.com/scribejava/scribejava/blob/8970e8eeb0aff840d0b223890e9c392ee19218f7/scribejava-httpclient-okhttp/src/main/java/com/github/scribejava/httpclient/okhttp/OkHttpHttpClient.java#L140.\n\nI agree with your reasoning from https://github.com/scribejava/scribejava/issues/966, that you want to allow the possibilities. On the other hand, few servers are too strict that they don't accept other kinds of 'Content-Type' that they don't support.\n\nIf you still want to keep the behavior same, I would like to understand the reasoning behind a different implementation for OkHttpClient.","author":{"url":"https://github.com/karthik-119","@type":"Person","name":"karthik-119"},"datePublished":"2025-05-28T09:26:33.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1083/scribejava/issues/1083"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ed53ca15-42cf-981b-5def-24389ae55097
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idECF2:17C51:385067A:4CE8D26:6972CAA5
html-safe-nonce3cdaaf43bc9b0d5ea943429c5a8bfb9de9d9b0b3243faadbb46da3c55d662c1a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQ0YyOjE3QzUxOjM4NTA2N0E6NENFOEQyNjo2OTcyQ0FBNSIsInZpc2l0b3JfaWQiOiIzNzM2MjkzNDIyMzc3NjUwODUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3e1d4fef784d945f91ead9bbcc6926aeb5dc3ccbf1b7d35f18ac2da771a3a811
hovercard-subject-tagissue:3096679803
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/scribejava/scribejava/1083/issue_layout
twitter:imagehttps://opengraph.githubassets.com/729f8a1c696a3c6eae5159fea2dd137b6c3fdfd736f8f64694ae813ab9942bff/scribejava/scribejava/issues/1083
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/729f8a1c696a3c6eae5159fea2dd137b6c3fdfd736f8f64694ae813ab9942bff/scribejava/scribejava/issues/1083
og:image:altDear ScribeJava, Library: https://github.com/scribejava/scribejava/tree/master/scribejava-httpclient-apache While building the request object: scribejava/scribejava-httpclient-apache/src/main/java/...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekarthik-119
hostnamegithub.com
expected-hostnamegithub.com
Nonee5abb0753dbd4190d15d366a819b0ca85f68a7e5bbe3d32213b346c41685c80a
turbo-cache-controlno-preview
go-importgithub.com/scribejava/scribejava git https://github.com/scribejava/scribejava.git
octolytics-dimension-user_id15140551
octolytics-dimension-user_loginscribejava
octolytics-dimension-repository_id889932
octolytics-dimension-repository_nwoscribejava/scribejava
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id889932
octolytics-dimension-repository_network_root_nwoscribejava/scribejava
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release88896109b054799a7f22afaeee541d00f9170dc3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/scribejava/scribejava/issues/1083#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fscribejava%2Fscribejava%2Fissues%2F1083
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%2Fscribejava%2Fscribejava%2Fissues%2F1083
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=scribejava%2Fscribejava
Reloadhttps://patch-diff.githubusercontent.com/scribejava/scribejava/issues/1083
Reloadhttps://patch-diff.githubusercontent.com/scribejava/scribejava/issues/1083
Reloadhttps://patch-diff.githubusercontent.com/scribejava/scribejava/issues/1083
scribejava https://patch-diff.githubusercontent.com/scribejava
scribejavahttps://patch-diff.githubusercontent.com/scribejava/scribejava
Please reload this pagehttps://patch-diff.githubusercontent.com/scribejava/scribejava/issues/1083
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fscribejava%2Fscribejava
Fork 1.7k https://patch-diff.githubusercontent.com/login?return_to=%2Fscribejava%2Fscribejava
Star 5.5k https://patch-diff.githubusercontent.com/login?return_to=%2Fscribejava%2Fscribejava
Code https://patch-diff.githubusercontent.com/scribejava/scribejava
Issues 44 https://patch-diff.githubusercontent.com/scribejava/scribejava/issues
Pull requests 30 https://patch-diff.githubusercontent.com/scribejava/scribejava/pulls
Actions https://patch-diff.githubusercontent.com/scribejava/scribejava/actions
Projects 0 https://patch-diff.githubusercontent.com/scribejava/scribejava/projects
Wiki https://patch-diff.githubusercontent.com/scribejava/scribejava/wiki
Security 0 https://patch-diff.githubusercontent.com/scribejava/scribejava/security
Insights https://patch-diff.githubusercontent.com/scribejava/scribejava/pulse
Code https://patch-diff.githubusercontent.com/scribejava/scribejava
Issues https://patch-diff.githubusercontent.com/scribejava/scribejava/issues
Pull requests https://patch-diff.githubusercontent.com/scribejava/scribejava/pulls
Actions https://patch-diff.githubusercontent.com/scribejava/scribejava/actions
Projects https://patch-diff.githubusercontent.com/scribejava/scribejava/projects
Wiki https://patch-diff.githubusercontent.com/scribejava/scribejava/wiki
Security https://patch-diff.githubusercontent.com/scribejava/scribejava/security
Insights https://patch-diff.githubusercontent.com/scribejava/scribejava/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/scribejava/scribejava/issues/1083
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/scribejava/scribejava/issues/1083
Skip adding default content-type header 'application/x-www-form-urlencoded' if content is nullhttps://patch-diff.githubusercontent.com/scribejava/scribejava/issues/1083#top
https://github.com/karthik-119
https://github.com/karthik-119
karthik-119https://github.com/karthik-119
on May 28, 2025https://github.com/scribejava/scribejava/issues/1083#issue-3096679803
https://github.com/scribejava/scribejava/tree/master/scribejava-httpclient-apachehttps://github.com/scribejava/scribejava/tree/master/scribejava-httpclient-apache
scribejava/scribejava-httpclient-apache/src/main/java/com/github/scribejava/httpclient/apache/ApacheHttpClient.javahttps://github.com/scribejava/scribejava/blob/8970e8eeb0aff840d0b223890e9c392ee19218f7/scribejava-httpclient-apache/src/main/java/com/github/scribejava/httpclient/apache/ApacheHttpClient.java#L85
8970e8ehttps://patch-diff.githubusercontent.com/scribejava/scribejava/commit/8970e8eeb0aff840d0b223890e9c392ee19218f7
scribejava/scribejava-httpclient-okhttp/src/main/java/com/github/scribejava/httpclient/okhttp/OkHttpHttpClient.javahttps://github.com/scribejava/scribejava/blob/8970e8eeb0aff840d0b223890e9c392ee19218f7/scribejava-httpclient-okhttp/src/main/java/com/github/scribejava/httpclient/okhttp/OkHttpHttpClient.java#L140
8970e8ehttps://patch-diff.githubusercontent.com/scribejava/scribejava/commit/8970e8eeb0aff840d0b223890e9c392ee19218f7
#966https://github.com/scribejava/scribejava/issues/966
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.