From a7e73cc3898cbcc18fcd5493381ade1e9dffad34 Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Mon, 31 Jan 2022 10:13:43 -0700 Subject: [PATCH] feat: compute md5 hash for CDN uploads. (#11750) By default, azure auto-computes MD5 for all blobs < 64MBs. However, many of our binaries exceed 64MB so md5 has to be computed manually. With this patch, MD5 hash will be set to all our CDN uploads and could be retrieved as `content-md5` header, e.g.: ```bash $ curl -I https://playwright.azureedge.net/builds/ffmpeg/1001/ffmpeg-win32.zip ``` Fixes #10173 --- browser_patches/upload.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/browser_patches/upload.sh b/browser_patches/upload.sh index 568f683029..c1df5c0139 100755 --- a/browser_patches/upload.sh +++ b/browser_patches/upload.sh @@ -43,6 +43,17 @@ if [[ ("$2" == '--check') ]]; then fi fi +GENERATE_MD5_HASH=$(cat <