forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Payments] HTTP HEAD request for payment method manifest.
Before this patch, Chrome would download payment method manifests via HTTP GET, which would check the HTTP headers for a Link rel="payment-method-manifest" first and then, failing to find it, would fallback to reading the body of the HTTP response. This HTTP GET had a 1MB file limit. The HTTP GET was problematic for web developers who used the payment method identifier URL to host both human-readable content and the API end-point HTTP Link rel="payment-method-manifest" header. If the human-readable content grew above 1MB, then Chrome rejected the API end-point, even though it did not need to download the full human-readable content. This patch changes Chrome to download the payment method manifest via HTTP HEAD request on the payment method identifier URL. If the HTTP headers do not have a Link rel="payment-method-manifest", then Chrome will fall back to HTTP GET request on this URL. After this patch, Chrome is more resilient against changes to human-readable content that is hosted on the same URL as the payment method identifier API end-point with HTTP header Link rel="payment-method-identifier". Bug: 1450596 Change-Id: I26975138546b35a6c77142ffe1f3f4b64df1d833 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4579537 Commit-Queue: Rouslan Solomakhin <rouslan@chromium.org> Reviewed-by: Nick Burris <nburris@chromium.org> Cr-Commit-Position: refs/heads/main@{#1154861}
- Loading branch information
1 parent
3687976
commit faf93ef
Showing
3 changed files
with
125 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters