-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot parse URI without authority component #469
Comments
I think I am hitting a similar issue where a location header that contains a path is parsed as an authority
or not at all if it has a trailing slash
|
@adamreichold What you pasted is orthogonal to the ticket and AFAIK both your pastes aren't bugs. |
@nox Thank you for looking into this! Can you go into slightly more detail why both instances are valid behaviour so that I can better understand how to work around this? Thanks! |
The
So this covers the first example If you read the rules for those 4 cases, you'll notice that the only forms that can accept a |
So basically, this boils down to |
Yes, cause it represents an URI in the context of a HTTP request/response cycle, where |
Trying to parse an URI like
unix:///tmp/agent.sock
orunix:/tmp/agent.sock
, that has a schema and not an authority, produces an ErrorInvalidaUri(InvalidFormat)
.There is no restriction defined in the URI standard that would make these URIs invalid.
The use-case I have is connecting to a SPIFFE Workload Endpoint: https://github.com/spiffe/spiffe/blob/master/standards/SPIFFE_Workload_Endpoint.md#4-locating-the-endpoint.
The text was updated successfully, but these errors were encountered: