Closed tatchi closed 1 year ago
Ah yeah the String function exists only since 4.13. We might need to vendor it.
Ah yeah the String function exists only since 4.13. We might need to vendor it.
What would be the best way to vendor it? Should we create our own string.ml
where we include Stdlib.String
?
A local misc.ml
module would do, I think. I'm kind of surprised there isn't one already!
Continued and merged in #42 :)
I hit the following error while testing the
ocurl
clientUntil I realised the double
//
in the URL. This is because I passedhttp://localhost:4318/
(with the trailing slash) as URL config.This PR should fix it by removing the potential trailing
/
from the config.urlnote: I tested the same code with
cohttp
client, and it was even worse because it "failed" silently due to a301
redirect response (I'll open a separate issue).