aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorbors-servo <infra@servo.org>2023-04-14 07:51:58 +0200
committerGitHub <noreply@github.com>2023-04-14 07:51:58 +0200
commit4251159513dc2c7d25f2926baf500f76beec8947 (patch)
tree4dad3b30cddfeb8aa6edec30c6268288feb91175 /python
parent083a96a8d7132154e90b58f8f9bb0b00d52b7727 (diff)
parentc4882aab7e4f30688517ac1dac1a783f7c0c17cf (diff)
downloadservo-4251159513dc2c7d25f2926baf500f76beec8947.tar.gz
servo-4251159513dc2c7d25f2926baf500f76beec8947.zip
Auto merge of #29627 - CYBAI:respect-headers-ct, r=mukilan
Respect MIME type from headers instead of caching it Based on the spec, > A [Request](https://fetch.spec.whatwg.org/#request) object’s [MIME type](https://fetch.spec.whatwg.org/#concept-body-mime-type) is to return the result of [extracting a MIME type](https://fetch.spec.whatwg.org/#concept-header-extract-mime-type) from its [request](https://fetch.spec.whatwg.org/#concept-request-request)’s [header list](https://fetch.spec.whatwg.org/#concept-request-header-list). request and response should always return the MIME type from their header list. As we're currently caching the mime type directly, this PR will help to remove the caching field and always retrieve from headers instead. --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [ ] These changes fix #___ (GitHub issue number if applicable) - [x] There are tests for these changes
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions