-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not set Accept
header twice
#28598
Conversation
Accept
headerAccept
header twice
How about removing another |
Then you would have to set that header on every call which is the opposite of what should be done. |
Why not? It will be clearer than before? |
How is it clearer to set a mandatory value outside a method called by every place? Currently we have a method |
Only 4 places invoking |
Ok, I disagree on that one. |
Anyway, let's merge this one first. |
* giteaofficial/main: [skip ci] Updated translations via Crowdin switch destination directory for apt signing keys (go-gitea#28639) Extend description for ARTIFACT_RETENTION_DAYS (go-gitea#28626) Refactor timeutil package (go-gitea#28623) Refactor some legacy code and remove unused code (go-gitea#28622) Remove unnecessary syncbranchToDB with tests (go-gitea#28624) Do not set `Accept` header twice (go-gitea#28598) [skip ci] Updated translations via Crowdin fix wrong link in user and organization profile when using relative url (go-gitea#28617) Add get actions runner registration token for API routes, repo, org, user and global level (go-gitea#27144) Fix session key conflict with database keyword (go-gitea#28613)
Revert go-gitea#28550 Don't add the `Accept` header twice.
Revert go-gitea#28550 Don't add the `Accept` header twice.
Revert #28550
Don't add the
Accept
header twice.