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

If i add "Usera-agent" header, i have 2 "User-agent" #3

Closed
fleytman opened this issue Nov 28, 2022 · 2 comments
Closed

If i add "Usera-agent" header, i have 2 "User-agent" #3

fleytman opened this issue Nov 28, 2022 · 2 comments

Comments

@fleytman
Copy link
Contributor

    user_agent = "grpc-web-javascript/0.1"
    headers = {
        "User-agnet": user_agent
    }
    response = session.request(
        RpcUri(url, package=package,
               service=service, method=method),
        headers=headers,
        data=data

Screenshot 2022-11-28 at 10 52 20

It's problem for my api

@dipu-bd
Copy link
Owner

dipu-bd commented Nov 28, 2022

Check the spelling. One is User-Agent another is User-agnet. You switched the place for n and e for agent.

@dipu-bd dipu-bd closed this as completed Nov 28, 2022
@fleytman
Copy link
Contributor Author

Sorry, realy it's my mistake

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

2 participants