Skip to content

Commit

Permalink
set content type
Browse files Browse the repository at this point in the history
  • Loading branch information
ofpiyush committed Feb 26, 2018
1 parent 0b48478 commit c425881
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions automerger/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (

func (p *PushEventHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
defer r.Body.Close()
w.Header().Set("Content-Type", "application/json")
if r.Header.Get("X-GitHub-Event") != "push" {
httpErrors(w, http.StatusAccepted, ErrUnknownEvent)
return
Expand Down

0 comments on commit c425881

Please sign in to comment.