summaryrefslogtreecommitdiff
path: root/.github/workflows/installer/vercel.json
diff options
context:
space:
mode:
authorMarc Cornellà <marc@mcornella.com>2023-10-28 10:24:24 +0200
committerMarc Cornellà <marc@mcornella.com>2023-10-28 10:24:24 +0200
commit7348d12f8e5cd755037aa6f5d347eab0ac2efb0b (patch)
tree7e37d56ae75a8237eaf5c00ca7bb1c36d4bd90ff /.github/workflows/installer/vercel.json
parent048455ccefdc67c4f137b8f7886769c55c2e5417 (diff)
downloadzsh-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.json11
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": [