Skip to content
This repository was archived by the owner on Oct 29, 2021. It is now read-only.
This repository was archived by the owner on Oct 29, 2021. It is now read-only.

Make httptrace.responseInfoRecorder compatible with http.Hijacker #145

Description

@sqs

The httptrace server middleware writes to the HTTP response at

SetSpanIDHeader(rr.Header(), *spanID)
even if it has been hijacked (with http.Hijacker, for WebSockets for example). This has undefined behavior. It should detect if it has been hijacked and not write to it. Same for Flush.

Activity

  1. changed the title [-]Make httptrace.responseInfoRecorder implement Hijacker[/-] [+]Make httptrace.responseInfoRecorder compatible with http.Hijacker[/+] on Apr 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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