mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-08-18 18:06:04 +00:00
Use Branch: instead of X-Pages-Branch: to set custom branch name.
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user