Skip to content

Commit

Permalink
handler/do_import- not being http was making github hooks fail
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Apr 14, 2021
1 parent 18988e0 commit c2e0215
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/handler/do_import.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func DoImport(w http.ResponseWriter, r *http.Request) {
p.SetLatest(v)
desturl := "/" + strconv.FormatInt(remo.ID, 10) + "/" + user.Name + "/" + name

remo.InstallWebhook(user, details.ID, repo, "http://"+global.Domain+desturl+"/hook")
remo.InstallWebhook(user, details.ID, repo, "https://"+global.Domain+desturl+"/hook")

w.Header().Add("Location", "."+desturl)
w.WriteHeader(http.StatusFound)
Expand Down

0 comments on commit c2e0215

Please sign in to comment.