Skip to content

Writing header in upgrade handler #331

Answered by mirpo
mirpo asked this question in Q&A
Discussion options

You must be logged in to vote

Yep, this res.writeStatus("101 Switching Protocols").writeHeader("test-header", "header-value") works fine.
Anyway It's just not clear that writeHeader changes/resets status to 200.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #331 on December 09, 2020 03:29.