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
This regex seems to not allow relative paths : https://github.com/Corvusoft/restbed/blob/master/source/corvusoft/restbed/uri.cpp#L207 (https://github.com/Corvusoft/restbed/blob/3.0/source/corvusoft/restbed/uri.cpp#L200)
e.g.:
auto uri = Uri("file://certs/server.key"); cout << uri.get_path() << endl;
prints: /server.key
I guess this is only relevant for file:// though since http://blah.com/blah would be fine.
The text was updated successfully, but these errors were encountered:
Thanks for that @oodgaard, will look to resolve this immediately.
Sorry, something went wrong.
See https://tools.ietf.org/html/rfc3986#section-4.2 for details of relative path URIs.
Relative Path Proposal
bool relative = true; Uri uri("file://certs/server.key", relative );
26aea53
ben-crowhurst
No branches or pull requests
This regex seems to not allow relative paths : https://github.com/Corvusoft/restbed/blob/master/source/corvusoft/restbed/uri.cpp#L207
(https://github.com/Corvusoft/restbed/blob/3.0/source/corvusoft/restbed/uri.cpp#L200)
e.g.:
auto uri = Uri("file://certs/server.key");
cout << uri.get_path() << endl;
prints: /server.key
I guess this is only relevant for file:// though since http://blah.com/blah would be fine.
The text was updated successfully, but these errors were encountered: