Skip to content
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

Command line header override odd behavior for user agent / User-Agent / USER_AGENT #748

Open
clach04 opened this issue Aug 13, 2023 · 0 comments

Comments

@clach04
Copy link

clach04 commented Aug 13, 2023

This may be error, user_agent versus user-agent (_ versus -) but surprising behavior with header sent.

Expected Behavior

Want to override user agent

Current Behavior

postlight-parse   http://localhost:8000/test_postlight.html --header.user_agent=my_user_agent

This appends the value my_user_agent to the end of the built in user agent with a comma. I.e. appends, ,my_user_agent

postlight-parse   http://localhost:8000/test_postlight.html --header.user-agent=my_user_agent

does replace the user agent correctly BUT also sends HTTP_USERAGENT

Steps to Reproduce

Detailed Description

Possible Solution

Worth a doc note, unclear if this is a bug but the behavior is surprising.

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

No branches or pull requests

1 participant