7348d12f8e5cd755037aa6f5d347eab0ac2efb0b

Author
Marc Cornellà <marc@mcornella.com>
Committer
Marc Cornellà <marc@mcornella.com>
Date

Message

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.

Diff

 1diff --git a/.github/workflows/installer/vercel.json b/.github/workflows/installer/vercel.json
 2index 8c5aec5e096c37e05914c0362b592c76bf2ca251..524dc3c0f280f20621f774463403e4ab3b785c65 100644
 3--- a/.github/workflows/installer/vercel.json
 4+++ b/.github/workflows/installer/vercel.json
 5@@ -2,7 +2,16 @@
 6   "headers": [
 7     {
 8       "source": "/((?!favicon.ico).*)",
 9-      "headers": [{ "key": "Content-Type", "value": "text/plain" }]
10+      "headers": [
11+        {
12+          "key": "Content-Type",
13+          "value": "text/plain"
14+        },
15+        {
16+          "key": "Content-Disposition",
17+          "value": "inline; filename=\"install.sh\""
18+        }
19+      ]
20     }
21   ],
22   "rewrites": [