1
0
Fork 0
mirror of https://github.com/sbrl/powahroot.git synced 2024-11-21 06:03:00 +00:00

bugfix: querystring..... again.

sigh
This commit is contained in:
Starbeamrainbowlabs 2024-09-12 17:02:50 +01:00
parent fc1d4a45e0
commit 567dcc6137
Signed by: sbrl
GPG key ID: 1BE5172E637709C2
2 changed files with 4 additions and 1 deletions

View file

@ -14,6 +14,9 @@ npm install --save powahroot
-----
## v1.2.11
- ....and another one. Just why?
## v1.2.10
- Fix another embarrassing bug in new `RequestContext.querystring` and document behaviour

View file

@ -18,7 +18,7 @@ class RouterContext {
* @return {Object} The parsed query string as an object, or an empty object.
*/
get querystring() {
if(this.url.query == null) return {};
if(this.url.search == null) return {};
return querystring.parse(this.url.search.substring(1));
}