File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -383,12 +383,16 @@ type streamReadWriteAcker struct {
383383
384384// AckConnection acks response back to the proxy.
385385func (s * streamReadWriteAcker ) AckConnection (tracePropagation string ) error {
386- metadata := quicpogs.Metadata {
387- Key : tracing .CanonicalCloudflaredTracingHeader ,
388- Val : tracePropagation ,
386+ metadata := []quicpogs.Metadata {}
387+ // Only add tracing if provided by origintunneld
388+ if tracePropagation != "" {
389+ metadata = append (metadata , quicpogs.Metadata {
390+ Key : tracing .CanonicalCloudflaredTracingHeader ,
391+ Val : tracePropagation ,
392+ })
389393 }
390394 s .connectResponseSent = true
391- return s .WriteConnectResponseData (nil , metadata )
395+ return s .WriteConnectResponseData (nil , metadata ... )
392396}
393397
394398// httpResponseAdapter translates responses written by the HTTP Proxy into ones that can be used in QUIC.
You can’t perform that action at this time.
0 commit comments