Browse Source

HTTP/2: Separate path and query components

Loïc Hoguin 9 years ago
parent
commit
725bdb9774
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/cowboy_http2.erl

+ 1 - 2
src/cowboy_http2.erl

@@ -483,8 +483,7 @@ stream_init(State0=#state{ref=Ref, socket=Socket, transport=Transport, decode_st
 
 
 			Host = Authority, %% @todo
 			Host = Authority, %% @todo
 			Port = todo, %% @todo
 			Port = todo, %% @todo
-			Path = PathWithQs, %% @todo
-			Qs = todo, %% @todo
+			{Path, Qs} = cow_http:parse_fullpath(PathWithQs),
 
 
 			Req = #{
 			Req = #{
 				ref => Ref,
 				ref => Ref,