[BUG] Superfluous response.WriteHeader call in contrib net/http #2859
Labels
apm:ecosystem
contrib/* related feature requests or bugs
bug
unintended behavior that has to be fixed
needs-triage
New issues that have not yet been triaged
Version of dd-trace-go
1.66.0
Describe what happened:
In this code block the custom responseWriter type is writing a 200 OK with a call to
WriteHeader
, but the net/http stdlib already does this, so the subsequent call toWrite
afterwards will attempt to do this again causing the stdlib to complain with a message to stdoutDescribe what you expected:
No error logs from the stdlib package
Steps to reproduce the issue:
Call
TraceAndServe
from within a server (will update with code example)The text was updated successfully, but these errors were encountered: