Skip to content

re add user-agent #6436

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

Merged
merged 3 commits into from
Sep 5, 2023
Merged

re add user-agent #6436

merged 3 commits into from
Sep 5, 2023

Conversation

jackkav
Copy link
Contributor

@jackkav jackkav commented Aug 31, 2023

changelog(Fixes): Added a fallback to always have user-agent to deal with unforeseen consequences of allowing user-agent removal.

user-agent was added to the ui for new requests but not old ones and default user-agent was suppressed.
This caused unintended consequences with existing requests, which had a user-agent but now dont.

this PR should fix that issue by falling back to always have user-agent.

If we want to remove user-agent when it is disabled in headers tab for a request we will need to look at request rendering as disabled headers are filtered out there before they make it to curlRequest.

@jackkav jackkav enabled auto-merge (squash) August 31, 2023 16:37
@jackkav jackkav force-pushed the revert/useragent-change branch from ffa0bc8 to 5790df6 Compare September 5, 2023 13:48
@jackkav jackkav disabled auto-merge September 5, 2023 13:48
@jackkav jackkav merged commit 2e5b963 into Kong:develop Sep 5, 2023
@jackkav jackkav deleted the revert/useragent-change branch September 5, 2023 13:49
jackkav added a commit to jackkav/insomnia that referenced this pull request Nov 24, 2023
* re add user-agent

* fix lint

* fix tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant