You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test"it removes the port part of the uri"dovalue=[]|>HeaderValues.wrap()|>UriHeader.headers("example.com:8000/foo/bar")|>HeaderValues.get(:uri)assertvalue=="/foo/bar"end
The text was updated successfully, but these errors were encountered:
test"it removes the port part of the uri"dovalue=[]|>HeaderValues.wrap()|>UriHeader.headers("https://www.example.com:8000/foo/bar")|>HeaderValues.get(:uri)assertvalue=="/foo/bar"end
Using the full URL (ie http://example.com instead of example.com) is a workaround. The issue stems from the way Elixir's URI library parses URLs. URI.parse("example.com:4000/foo") gives a path of "4000/foo" and a scheme of "example.com".
The following test in
uri_header_test.exs
fails:The text was updated successfully, but these errors were encountered: