aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy_http2.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-06-06 17:28:56 +0200
committerLoïc Hoguin <[email protected]>2016-06-06 17:28:56 +0200
commit725bdb97747a5fb9ae36246843b10bf91301c111 (patch)
tree838e5f670d3a564c9b78c6475695924921bc4fa2 /src/cowboy_http2.erl
parent8e9196215d8b432f074bacfae2f82f1716114a9f (diff)
downloadcowboy-725bdb97747a5fb9ae36246843b10bf91301c111.tar.gz
cowboy-725bdb97747a5fb9ae36246843b10bf91301c111.tar.bz2
cowboy-725bdb97747a5fb9ae36246843b10bf91301c111.zip
HTTP/2: Separate path and query components
Diffstat (limited to 'src/cowboy_http2.erl')
-rw-r--r--src/cowboy_http2.erl3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cowboy_http2.erl b/src/cowboy_http2.erl
index af2dcc8..94581ac 100644
--- a/src/cowboy_http2.erl
+++ b/src/cowboy_http2.erl
@@ -483,8 +483,7 @@ stream_init(State0=#state{ref=Ref, socket=Socket, transport=Transport, decode_st
Host = Authority, %% @todo
Port = todo, %% @todo
- Path = PathWithQs, %% @todo
- Qs = todo, %% @todo
+ {Path, Qs} = cow_http:parse_fullpath(PathWithQs),
Req = #{
ref => Ref,