uWebSockets.js icon indicating copy to clipboard operation
uWebSockets.js copied to clipboard

req.getQuery() is returning undefiend insteated of empty string

Open sailingwithsandeep opened this issue 11 months ago • 2 comments

as stated in docs it should return empty string

 /** Returns the raw querystring (the part of URL after ? sign) or empty string. */
    getQuery() : string;

Code:

get('/', (res, req) => {
                console.log(req.getQuery());

                res.writeStatus('201 Created').end("It's been real, Cupcake. Thanks. For everything! 🐣");
            })

Am i doing something wrong here?

sailingwithsandeep avatar Mar 14 '24 05:03 sailingwithsandeep