Skip to content

Commit

Permalink
Add HTTP header that explicitly indicates that we can accept gzipped …
Browse files Browse the repository at this point in the history
…data
  • Loading branch information
bertrik committed Aug 6, 2024
1 parent ddc52ca commit dc88610
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Path;

public interface INdwApi {
Expand All @@ -13,6 +14,7 @@ public interface INdwApi {
* Downloads a file from <a href="https://opendata.ndw.nu/">NDW open data portaal</a>
*/
@GET("/{filename}")
@Headers({"Accept-Encoding: gzip"})
Call<ResponseBody> downloadFile(@Path("filename") String filename);

}

0 comments on commit dc88610

Please sign in to comment.