Problem
fetch::Request cannot be constructed to write relative paths.
Steps To Reproduce
Steps to reproduce the behavior:
Call yew::services::fetch::Request::get("foo/bar")
Actual behaviour
Returns error: http::Error(InvalidUri(InvalidFormat))
Expected behavior
Construct a request that fetches ./foo/bar
Environment:
- Yew version: v0.18.0
- Rust version: nightly-2021-08-01
- Target, if relevant: wasm32-unknown-unknown
- Build tool, if relevant: trunk
- OS, if relevant: linux ubuntu
- Browser and version, if relevant: firefox 90.0
Questionnaire
Problem
fetch::Requestcannot be constructed to write relative paths.Steps To Reproduce
Steps to reproduce the behavior:
Call
yew::services::fetch::Request::get("foo/bar")Actual behaviour
Returns error:
http::Error(InvalidUri(InvalidFormat))Expected behavior
Construct a request that fetches
./foo/barEnvironment:
Questionnaire