-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Raw endpoints #646
Raw endpoints #646
Conversation
Codecov Report
@@ Coverage Diff @@
## master #646 +/- ##
==========================================
- Coverage 66.34% 66.31% -0.03%
==========================================
Files 54 54
Lines 3987 4029 +42
Branches 2032 2061 +29
==========================================
+ Hits 2645 2672 +27
- Misses 1341 1356 +15
Partials 1 1
Continue to review full report at Codecov.
|
f1eec6d
to
8551b7e
Compare
8551b7e
to
27ef76b
Compare
f47050d
to
55880d0
Compare
This pull request has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
55880d0
to
e543a4a
Compare
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.
A few last minor fixes. You are welcome to rebase&fixup for the last iteration.
e543a4a
to
f93ea22
Compare
@mgautierfr If there is a ticket already in a milestone, can we agree to avoid to put the corresponding PR in the milestone as well? To me it conplexifies the overall understanding of what is in a milestone. |
As the name suggests it, this endpoint is not smart : It returns the content as it is and only if it is present (no compatibility or whatever). The only "smart" thing is to return a redirect if the entry is a redirect.
f93ea22
to
dc15a9a
Compare
// /raw/<bookName>/<kind>/foo | ||
// ^^^^^ ^ ^ | ||
// 5 + 1 + 1 = 7 | ||
auto itemPath = request.get_url().substr(bookName.size()+kind.size()+7); |
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.
Haven't tested but is this --urlRootLocation
safe ?
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.
@mgautierfr This (late) comment desserves a reponse IMO
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.
Yes, request.get_url()
returns the url relative to the root location (so without it).
Fixes #631
Fixes #616