I am using libwebsockets C++ library for my http server.
I can download a file using api with postman
Response Headers content-type: application/zip content-length: 107627
cache-control: no-store Content-Disposition: attachment;
filename=logs.zip
I tried with CURL which is successful:
curl --http1.1 -k -OJ https://x.x.x.x/api/files/download-logfile
But when I use chrome browser I see error:
The webpage at https://x.x.x.x/api/files/download-logfile might be
temporarily down or it may have moved permanently to a new web
address. ERR_HTTP2_COMPRESSION_ERROR
I tried to enable in library, Still same problem
-DLWS_WITH_HTTP2=ON
-DLWS_WITH_HTTP_STREAM_COMPRESSION=1
What could be the problem here? Am I missing anything here?