Skip to content
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

Can we do something when server return bad content-type #346

Open
benoit74 opened this issue Jul 8, 2024 · 0 comments
Open

Can we do something when server return bad content-type #346

benoit74 opened this issue Jul 8, 2024 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@benoit74
Copy link
Collaborator

benoit74 commented Jul 8, 2024

Sample: https://wikileaks.org/pdfjs/web/viewer.html?file=%2F..%2Fspyfiles%2Ffiles%2F0%2F289_GAMMA-201110-FinSpy.pdf

### REC Headers ###
WARC/1.1
WARC-Page-ID: 84e46546-1a5f-4958-a844-f268cf8387b3
WARC-Resource-Type: document
WARC-JSON-Metadata: {"ipType":"Public","cert":{"issuer":"R11","ctc":"1"}}
WARC-Target-URI: https://wikileaks.org/pdfjs/web/viewer.html?file=%2F..%2Fspyfiles%2Ffiles%2F0%2F289_GAMMA-201110-FinSpy.pdf
WARC-Date: 2024-07-04T01:46:28.249Z
WARC-Type: response
WARC-Record-ID: <urn:uuid:5e28af04-8276-4780-b796-9296c9b34bc7>
Content-Type: application/http; msgtype=response
WARC-Payload-Digest: sha256:ceacb542dc6931476349b523ae9017c66a257a6daf43d810f547223ba1adfc8c
WARC-Block-Digest: sha256:d02f30e007686ab8276dae62e3eb9a40ac1baa934c033c33838f35678a30b597
Content-Length: 19864

### HTTP Headers ###
HTTP/1.1 200 OK
age: 0
cache-control: public, max-age=1200
content-type: text/html; charset=utf-8
date: Thu, 04 Jul 2024 01:46:28 GMT
server: nginx
surrogate-control: ESI/1.0
vary: Accept-Encoding, Accept-Encoding
via: 1.1 varnish (Varnish/7.1)
x-varnish: 9909606
x-orig-content-encoding: gzip

Here the server says that this is a text/html document while this is a PDF ...

@benoit74 benoit74 added the bug Something isn't working label Jul 8, 2024
@benoit74 benoit74 added this to the 2.2.0 milestone Jul 8, 2024
@benoit74 benoit74 modified the milestones: 2.2.0, later Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant