File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ class withState {
16
16
this . req . getState = this . getState . bind ( this )
17
17
this . req . getHeaders = this . getHeaders . bind ( this )
18
18
this . req . getQuery = this . getQuery . bind ( this )
19
+ this . req . getQueryPolluted = this . getQueryPolluted . bind ( this )
19
20
this . req . getParams = this . getParams . bind ( this )
20
21
this . req . getCookies = this . getCookies . bind ( this )
21
22
this . req . getBody = this . getBody . bind ( this )
@@ -67,6 +68,11 @@ class withState {
67
68
return getterObject ( this . req . query , path , defaultValue )
68
69
}
69
70
71
+ getQueryPolluted ( path ?: any , defaultValue ?: any ) : any {
72
+ // @ts -ignore
73
+ return getterObject ( this . req . queryPolluted , path , defaultValue )
74
+ }
75
+
70
76
getParams ( path ?: any , defaultValue ?: any ) : any {
71
77
return getterObject ( this . req . params , path , defaultValue )
72
78
}
You can’t perform that action at this time.
0 commit comments