File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,8 @@ fn into_websocket_request(ag: ApiGatewayWebsocketProxyRequest) -> http::Request<
277277 . get ( http:: header:: HOST )
278278 . and_then ( |s| s. to_str ( ) . ok ( ) )
279279 . or ( ag. request_context . domain_name . as_deref ( ) ) ;
280- let path = apigw_path_with_stage ( & ag. request_context . stage , & ag. path . unwrap_or_default ( ) ) ;
280+ let raw_path = ag. path . unwrap_or_default ( ) ;
281+ let path = apigw_path_with_stage ( & ag. request_context . stage , & raw_path) ;
281282
282283 let builder = http:: Request :: builder ( )
283284 . uri ( build_request_uri (
@@ -286,6 +287,7 @@ fn into_websocket_request(ag: ApiGatewayWebsocketProxyRequest) -> http::Request<
286287 host,
287288 Some ( ( & ag. multi_value_query_string_parameters , & ag. query_string_parameters ) ) ,
288289 ) )
290+ . extension ( RawHttpPath ( raw_path) )
289291 // multi-valued query string parameters are always a super
290292 // set of singly valued query string parameters,
291293 // when present, multi-valued query string parameters are preferred
You can’t perform that action at this time.
0 commit comments