getHeader and getQuery return empty objects #177
-
I am running uWebSockets.js on a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
its used like this |
Beta Was this translation helpful? Give feedback.
-
Thank you very much! worked yeah. I also messed it up because I put the following two lines under my |
Beta Was this translation helpful? Give feedback.
its used like this
req.getHeader('headername')
returns the value of the header, needs to be lowercase https://unetworking.github.io/uWebSockets.js/generated/interfaces/httprequest.html#getheader