Skip to content

Commit

Permalink
Set appropriate Accept header for events.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Jul 25, 2024
1 parent 0138132 commit 73945ba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions http/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func (s *Service) Events(ctx context.Context, topics []string, handler consensus
if _, exists := client.Headers["User-Agent"]; !exists {
client.Headers["User-Agent"] = defaultUserAgent
}
client.Headers["Accept"] = "text/event-stream"
client.Connection.Transport = &http.Transport{
Dial: (&net.Dialer{
Timeout: 2 * time.Second,
Expand Down

0 comments on commit 73945ba

Please sign in to comment.