Closed dthul closed 4 years ago
Any reason to not just change the url
fn to something like
format!("{}/{}", self.host, path.trim_start_matches('/'))
?
that removes the "paths must start with a slash" invariant, and has the additional benefit of not breaking if we ever got to v10+
That would also work I guess. Do you want to create the fix or should I modify this PR?
I'll get it - https://github.com/wyyerd/stripe-rs/pull/120
This should fix #105.
It's only a quick and dirty fix though. I feel that properly parsing the URL might be a more robust option (as the already existing TODO comment suggests).