-
Notifications
You must be signed in to change notification settings - Fork 8
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
providing the /contributions response as a downloadable file #78
Conversation
I'd suggest to also make a 1.2.2 release then after this commit, as the compression of the response is somewhat important to avoid that tools like swagger have to deal with responses that are too big. |
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.
seems good, but the pom
's version in master must always be a SNAPSHOT
.
Btw: why don't we just gzip everything? I mean, for the smaller amounts of data returned by the aggregation endpoints it doesn't do much, but it also doesn't hurt also 🤷
//edit:
I'd suggest to also make a 1.2.2 release then after this commit
👍
PS: could it be that you accidentally started this branch off of the |
Good question.. I think we've discussed that already in the past, right? Because there we've also decided to just encode the responses of data extraction requests and not everyone. I guess the idea was that without gzip, the data aggregation responses are also directly displayed in the browser?
That might be the reason actually.. still the versioning in the pom in the master was not fitting, so it's also good that this got fixed now through that "mistake" :) |
Hmm, as far as I can see, it's already the case that all requests are gzip compressed (see the metadata request example below, but the same is also the case for
|
Ok.. yes.. I used the wrong description for the change that was actually made. I thought it has something to do with the gzip compression, but in fact it is about setting the response header to automatically provide the response as a downloadable file: So the change proposed in this PR is actually "providing the /contributions response as a downloadable file". |
src/main/java/org/heigit/ohsome/ohsomeapi/utils/RequestUtils.java
Outdated
Show resolved
Hide resolved
6134249
to
5d491b9
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.
👍 (btw: I've added a changelog entry for this one as well.)
b064500
to
a180a2e
Compare
adds a respective header so that the response is provided as a downloadable file