Skip to content

req.host should be req.hostname #2179

@dougwilson

Description

@dougwilson

Currently in express, req.host returns the hostname instead of the host (i.e. it strips the port, if present). This should be renamed to req.hostname in the next major and req.host added that is the actual host and not the hostname.

/cc @dantman

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