Skip to content

Commit

Permalink
Update propagation.go
Browse files Browse the repository at this point in the history
Should use Set() instead of Add() in HTTPHeadersCarrier. see opentracing#159
  • Loading branch information
jeremyxu2010 authored Aug 22, 2018
1 parent bd9c319 commit aead5d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion propagation.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ type HTTPHeadersCarrier http.Header
// Set conforms to the TextMapWriter interface.
func (c HTTPHeadersCarrier) Set(key, val string) {
h := http.Header(c)
h.Add(key, val)
h.Set(key, val)
}

// ForeachKey conforms to the TextMapReader interface.
Expand Down

0 comments on commit aead5d5

Please sign in to comment.