File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ export class Route {
249
249
250
250
const hasGet = suggestions . includes ( 'GET' ) ;
251
251
if ( suggestions . includes ( 'POST' ) === true && hasGet === false ) return 'POST' ;
252
- return hasGet === true ? 'GET' : suggestions [ 0 ] ?? 'GET' ;
252
+ return hasGet === true ? 'GET' : ( suggestions [ 0 ] ?? 'GET' ) ;
253
253
}
254
254
255
255
/**
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ export class ServerRequest extends Body {
63
63
const url = ( this . url = options . url ?? null ) ;
64
64
65
65
const pathMatch = ( url ?? '' ) . match ( URL_RE ) ;
66
- this . path = pathMatch === null ? '' : decodeURIComponentSafe ( pathMatch [ 5 ] ) ?? '' ;
66
+ this . path = pathMatch === null ? '' : ( decodeURIComponentSafe ( pathMatch [ 5 ] ) ?? '' ) ;
67
67
68
68
this . isWebSocket = options . isWebSocket ;
69
69
this . isSecure = options . isSecure ;
You can’t perform that action at this time.
0 commit comments