Skip to content

doc: http.request parameter protocol defaults to http could mention it ignores trailing colon #4712

@kapouer

Description

@kapouer

Because it says

options can be an object or a string. If options is a string, it is automatically parsed with url.parse().
protocol: Protocol to use. Defaults to 'http'.

url.parse() returns a protocol with trailing colons, and this is a little confusing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions