Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add --base-path CLI option to override the URL path in the tilejson #1205
Add --base-path CLI option to override the URL path in the tilejson #1205
Changes from 19 commits
f4e1895
aae6f61
75506f4
13e75ef
b9a8b75
665aff0
96bca8d
f6e06da
2a9c378
491896f
1851b72
4bf676d
03aed58
561bf9e
0b7cb20
a24285a
f70df5c
83cd23a
bf77ae0
728c770
94b5b79
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use pop() back as the trim_end_matches would return "' for "//", any better way to use the trim methods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, lets keep it simple - use this method just for the user-supplied base_path parsing - in which case it should be empty if the user only passed
/
. And keep the original code for x-rewrite-url header.I will look at it later, see if it can be optimized, but its not worth it now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually It's not bad to use pop() here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But your suggestion is more simple