Closed CrowdHailer closed 5 years ago
This is an example
iex> Raxx.HTTP1.parse_request("GET //foo/bar HTTP/1.1\r\nhost: example.com\r\n\r\n", scheme: :http) {:ok, {%Raxx.Request{ authority: "example.com", body: false, headers: [], method: :GET, path: ["bar"], query: nil, raw_path: "/bar", scheme: :http }, nil, {:complete, ""}, ""}}
Question is this incorrect? A url beginning with a double slash is considered to be followed by the host then path. e.g.
iex(4)> URI.parse("//foo/bar") %URI{ authority: "foo", fragment: nil, host: "foo", path: "/bar", port: nil, query: nil, scheme: nil, userinfo: nil }
Fixed by https://github.com/CrowdHailer/Ace/commit/02da0b177fe213cc8abd87dd362c1cbfcc97acab
This is an example
Question is this incorrect? A url beginning with a double slash is considered to be followed by the host then path. e.g.