Skip to content

Given an http.Response, get the resolved Location #2300

@mccoyst

Description

@mccoyst
It's supposed to be a full URL, but in practice people send (and thus browsers deal
with) relative URLs in "Location". Perhaps just a new method on *http.Response
that consults r.Header and r.Request to get the resolved Location URL, if present.

Bug requested by Brad Fitzpatrick.

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