File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const redirect: RouteRuleCtor<"redirect"> = ((m) =>
3030 const strpBase = ( m . options as any ) . _redirectStripBase ;
3131 if ( strpBase ) {
3232 if ( ! isPathInScope ( event . url . pathname , strpBase ) ) {
33- throw new HTTPError ( { status : 400 , message : "Invalid request path" } ) ;
33+ throw new HTTPError ( { status : 400 } ) ;
3434 }
3535 targetPath = withoutBase ( targetPath , strpBase ) ;
3636 }
@@ -53,7 +53,7 @@ export const proxy: RouteRuleCtor<"proxy"> = ((m) =>
5353 const strpBase = ( m . options as any ) . _proxyStripBase ;
5454 if ( strpBase ) {
5555 if ( ! isPathInScope ( event . url . pathname , strpBase ) ) {
56- throw new HTTPError ( { status : 400 , message : "Invalid request path" } ) ;
56+ throw new HTTPError ( { status : 400 } ) ;
5757 }
5858 targetPath = withoutBase ( targetPath , strpBase ) ;
5959 }
You can’t perform that action at this time.
0 commit comments