We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
web::uri::validate() wrongly assumes uri foo?bar=foo:bar is a absolute path because of the ":" in the query. RFC-3986 allows queries to contain ":".
web::uri::validate()
foo?bar=foo:bar
The text was updated successfully, but these errors were encountered:
I think you're right, I believe your example is a valid relative-ref.
relative-ref
Per RFC 3986 section 4.2:
relative-ref = relative-part [ "?" query ] [ "#" fragment ]
Therefore, probably
cpprestsdk/Release/src/uri/uri.cpp
Line 180 in bfe3487
?
#
An example like yours should be added to the test cases near relative_ref_string...
relative_ref_string
cpprestsdk/Release/tests/functional/uri/constructor_tests.cpp
Line 73 in bfe3487
Edit: I now have a test case and fix, so I'll make a PR later.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
web::uri::validate()
wrongly assumes urifoo?bar=foo:bar
is a absolute path because of the ":" in the query. RFC-3986 allows queries to contain ":".The text was updated successfully, but these errors were encountered: