-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
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
normalize url paths before making a request #1
Comments
I looked, net/url doesn't have a normalize function (bummer). I found https://github.com/PuerkitoBio/purell but it's just a bunch of regexes and it's complete overkill. |
It might be easier to just trim off any trailing / when I read the endpoint property from the config files, I try to find something. |
coryb
added a commit
that referenced
this issue
Feb 16, 2015
I just went with a simple TrimRight, seems to work. |
pdericson
pushed a commit
to pdericson/go-jira
that referenced
this issue
Sep 14, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://issues.apache.org/jira//rest/api/2/issue/MESOS-1123 returns a 404, but https://issues.apache.org/jira/rest/api/2/issue/MESOS-1123 works :(
I had this problem with this config:
Perhaps you can simply strip any trailing slashes from endpoint if they exists.
The text was updated successfully, but these errors were encountered: