fix: use query param for deploy secret (Gitea webhook compatible)
This commit is contained in:
@@ -12,7 +12,7 @@ func (h Handler) handleDeploy(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
if r.Header.Get("X-Deploy-Secret") != h.cfg.DeploySecret {
|
||||
if r.URL.Query().Get("secret") != h.cfg.DeploySecret {
|
||||
writeError(w, http.StatusUnauthorized, "invalid deploy secret")
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user