Skip to content

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

@clach04

Description

@clach04

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions