Use Branch: instead of X-Pages-Branch: to set custom branch name.

This commit is contained in:
Catherine
2025-11-12 17:05:11 +00:00
parent ed77339144
commit 9d0a3ac6ad
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -365,7 +365,7 @@ func putPage(w http.ResponseWriter, r *http.Request) error {
}
branch := "pages"
if customBranch := r.Header.Get("X-Pages-Branch"); customBranch != "" {
if customBranch := r.Header.Get("Branch"); customBranch != "" {
branch = customBranch
}
if err := AuthorizeBranch(branch, auth); err != nil {