Skip to content

net/http: client requests following redirects drop the host header. #8027

Closed
@DanielMorsing

Description

@DanielMorsing
If you specify a custom host for a request, the redirect logic will strip out the host
header. This can cause problems for request routing.

Example:
http://play.golang.org/p/3FAx_2mfdy

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions