Skip to content

Commit

Permalink
Merge pull request yangxikun#40 from plantfansam/baggage-propagator
Browse files Browse the repository at this point in the history
Return same context as passed in if no baggage present
  • Loading branch information
yangxikun authored Oct 1, 2022
2 parents 24a4464 + 40ee61e commit 6f6dee5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function _M:extract(context, carrier, getter)
getter = getter or self.text_map_getter
local baggage_string = getter.get(carrier, baggage_header)
if not baggage_string then
return context.new(context.entries)
return context
else
baggage_string = util.decode_percent_encoded_string(baggage_string)
end
Expand Down

0 comments on commit 6f6dee5

Please sign in to comment.