mirror of
https://github.com/sbrl/powahroot.git
synced 2024-11-24 15:13:00 +00:00
bugfix: querystring..... again.
sigh
This commit is contained in:
parent
fc1d4a45e0
commit
567dcc6137
2 changed files with 4 additions and 1 deletions
|
@ -14,6 +14,9 @@ npm install --save powahroot
|
||||||
|
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
## v1.2.11
|
||||||
|
- ....and another one. Just why?
|
||||||
|
|
||||||
|
|
||||||
## v1.2.10
|
## v1.2.10
|
||||||
- Fix another embarrassing bug in new `RequestContext.querystring` and document behaviour
|
- Fix another embarrassing bug in new `RequestContext.querystring` and document behaviour
|
||||||
|
|
|
@ -18,7 +18,7 @@ class RouterContext {
|
||||||
* @return {Object} The parsed query string as an object, or an empty object.
|
* @return {Object} The parsed query string as an object, or an empty object.
|
||||||
*/
|
*/
|
||||||
get querystring() {
|
get querystring() {
|
||||||
if(this.url.query == null) return {};
|
if(this.url.search == null) return {};
|
||||||
return querystring.parse(this.url.search.substring(1));
|
return querystring.parse(this.url.search.substring(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue