Skip to content

Commit

Permalink
revert: add cookies
Browse files Browse the repository at this point in the history
  • Loading branch information
franklinkim committed Mar 8, 2024
1 parent f6488fb commit ffd63f3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions integration/watermill/keel/subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,14 @@ func (s *Subscriber) handle(l *zap.Logger, r *http.Request, event *mpv2.Event) e
for name, headers := range r.Header {
msg.Metadata.Set(name, strings.Join(headers, ","))
}

if cookies := r.Cookies(); len(cookies) > 0 {
values := make([]string, len(cookies))
for i, cookie := range r.Cookies() {
values[i] = cookie.String()
}
msg.Metadata.Set("Cookies", strings.Join(values, "; "))
}
//
// if cookies := r.Cookies(); len(cookies) > 0 {
// values := make([]string, len(cookies))
// for i, cookie := range r.Cookies() {
// values[i] = cookie.String()
// }
// msg.Metadata.Set("Cookie", strings.Join(values, "; "))
// }

for k, v := range msg.Metadata {
l = l.With(zap.String(k, v))
Expand Down

0 comments on commit ffd63f3

Please sign in to comment.