Skip to content

Commit

Permalink
fix(backend): http - add header (#596)
Browse files Browse the repository at this point in the history
Signed-off-by: Arash Hatami <[email protected]>
  • Loading branch information
hatamiarash7 authored Sep 29, 2024
1 parent 19975c4 commit ccaf1ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/backend/http/sink.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package http

import (
"context"
"net/http"
"net/url"

"github.com/rs/zerolog/log"
Expand Down Expand Up @@ -60,7 +61,7 @@ func (s *Sink) Dequeue(ctx context.Context, envelopes []envelope.Envelope, outpu
log.Error().Err(err).Msg("🔴 " + output + " is not a valid url")
return err
}
_, err = request.PostEnvelopes(*url, envelopes, nil)
_, err = request.PostEnvelopes(*url, envelopes, http.Header{})
if err != nil {
log.Error().Err(err).Interface("metadata", s.Metadata()).Msg("🔴 could not dequeue payloads")
}
Expand Down

0 comments on commit ccaf1ff

Please sign in to comment.