You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Certainly there are more content types than this. I'm trying to implement Server Sent Events and there doesn't seem to be a way to override this and set the content type to text/event-stream. I'm new to Zig and Zap, so I'm probably just overlooking something.
I also tried setting the headers req.setHeader("Content-Type", "text/event-stream") but this doesn't change the content type. Also when the accept field is set to text/event-stream in the request, the router doesn't trigger the corresponding route handler.
The text was updated successfully, but these errors were encountered:
Certainly there are more content types than this. I'm trying to implement Server Sent Events and there doesn't seem to be a way to override this and set the content type to
text/event-stream
. I'm new to Zig and Zap, so I'm probably just overlooking something.zap/src/request.zig
Lines 371 to 379 in 675c65b
I also tried setting the headers
req.setHeader("Content-Type", "text/event-stream")
but this doesn't change the content type. Also when theaccept
field is set totext/event-stream
in the request, the router doesn't trigger the corresponding route handler.The text was updated successfully, but these errors were encountered: