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

Set HOST header automatically in request. #9

Open
dmarkey opened this issue Dec 18, 2022 · 0 comments
Open

Set HOST header automatically in request. #9

dmarkey opened this issue Dec 18, 2022 · 0 comments

Comments

@dmarkey
Copy link

dmarkey commented Dec 18, 2022

  • lambda-requests version: latest
  • Python version: 3.9
  • Operating System: Macos

Description

Some web frameworks require a host header to be set. Given the nature of this project there is no HOST as such but a I guess the function name would make the most sense.

What I Did

This seems to work OK

s.get("http+lambda://trending/something", headers={"HOST": "trending"})
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
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