Skip to content
This repository was archived by the owner on Feb 5, 2024. It is now read-only.

Removes prefix slashes from the API paths #57

Merged
merged 1 commit into from
May 31, 2019
Merged

Removes prefix slashes from the API paths #57

merged 1 commit into from
May 31, 2019

Conversation

koshatul
Copy link

Removed the / from the start of all the API paths.

Enterprise API is at https://<domain>/api/, the prefix slash removes the /api/ and means the library doesn't work with Travis CI Enterprise.

Also, thanks for the awesome library !

@shuheiktgw shuheiktgw self-requested a review May 30, 2019 03:56
@shuheiktgw shuheiktgw self-assigned this May 30, 2019
@shuheiktgw
Copy link
Owner

Thanks for your PR, and you are absolutely right. I needed to set a relative path instead of an absolute path otherwise url.Parse removes the base url's path, which makes sense.

LGTM and thanks again for your PR! 😄

@shuheiktgw shuheiktgw merged commit d22ebe8 into shuheiktgw:master May 31, 2019
@shuheiktgw
Copy link
Owner

I'll release v0.2.2 so please use that!

@koshatul koshatul deleted the fix-relative-url branch May 31, 2019 00:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants