Skip to content

Set HOST header automatically in request. #9

@dmarkey

Description

@dmarkey
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions