Adds Content-Type to the request to github
- The submodule update brings stricter validation to the request
around the content type in the go-github
@@ -43,6 +43,7 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
r.Body.Close()
+ r.Header.Set("Content-Type", "application/json")
var payload []byte
for i, secretKey := range h.secretKeys {
