Skip to content

net/http: describe where multiple response.WriteHeader calls occur #18761

Closed
@dsnet

Description

@dsnet

I see this in an HTTP server log:

server.go:2315: http: multiple response.WriteHeader calls

Written by the http package here.

It would be nice if it described file+line of the first non-http package function that caused WriteHeader to be called so that it's easier to find the offending code.

\cc @bradfitz

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions