Skip to content

Commit

Permalink
Fix http header for data stream
Browse files Browse the repository at this point in the history
* curl -s --http2 -X GET -N -H 'Accept: text/event-stream' -u $user:$pass https://a.b.c.d:1215/events
  • Loading branch information
arnaudveron committed Jul 11, 2024
1 parent 6dba275 commit ac44017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/Api.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ function ApiHandlerExample(props) {
buff += " -H 'o-node: " + node.node + "'"
}
if (data.stream) {
buff += " -N -H 'Content-Type: text/event-stream'"
buff += " -N -H 'Accept: text/event-stream'"
} else {
buff += " -H 'Content-Type: application/json'"
}
Expand Down

0 comments on commit ac44017

Please sign in to comment.