diff options
author | Marc Cornellà <marc@mcornella.com> | 2023-10-28 10:24:24 +0200 |
---|---|---|
committer | Marc Cornellà <marc@mcornella.com> | 2023-10-28 10:24:24 +0200 |
commit | 7348d12f8e5cd755037aa6f5d347eab0ac2efb0b (patch) | |
tree | 7e37d56ae75a8237eaf5c00ca7bb1c36d4bd90ff /.github/workflows/installer/vercel.json | |
parent | 048455ccefdc67c4f137b8f7886769c55c2e5417 (diff) | |
download | zsh-7348d12f8e5cd755037aa6f5d347eab0ac2efb0b.tar.gz zsh-7348d12f8e5cd755037aa6f5d347eab0ac2efb0b.tar.bz2 zsh-7348d12f8e5cd755037aa6f5d347eab0ac2efb0b.zip |
ci(vercel): add Content-Disposition header on installer
This allows doing something like
curl -O https://install.ohmyz.sh
and have the `install.sh` file automatically saved to its right name.
Diffstat (limited to '.github/workflows/installer/vercel.json')
-rw-r--r-- | .github/workflows/installer/vercel.json | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/.github/workflows/installer/vercel.json b/.github/workflows/installer/vercel.json index 8c5aec5e0..524dc3c0f 100644 --- a/.github/workflows/installer/vercel.json +++ b/.github/workflows/installer/vercel.json @@ -2,7 +2,16 @@ "headers": [ { "source": "/((?!favicon.ico).*)", - "headers": [{ "key": "Content-Type", "value": "text/plain" }] + "headers": [ + { + "key": "Content-Type", + "value": "text/plain" + }, + { + "key": "Content-Disposition", + "value": "inline; filename=\"install.sh\"" + } + ] } ], "rewrites": [ |