浏览代码

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.
Marc Cornellà 6 月之前
父节点
当前提交
7348d12f8e
共有 1 个文件被更改,包括 10 次插入1 次删除
  1. 10 1
      .github/workflows/installer/vercel.json

+ 10 - 1
.github/workflows/installer/vercel.json

@@ -2,7 +2,16 @@
   "headers": [
   "headers": [
     {
     {
       "source": "/((?!favicon.ico).*)",
       "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": [
   "rewrites": [