Compare commits

...

3 Commits

Author SHA1 Message Date
Dean Karn 3fda9e72e1 Update README.md 2018-08-09 12:30:00 -07:00
Dean Karn a610eb250e Merge pull request #43 from go-playground/bb-uuid-check-enhancement
only validate UUID header when expecting one
2018-08-09 12:28:51 -07:00
Dean Karn f583341fb8 only validate UUID header when expecting one 2018-08-09 12:26:52 -07:00
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
Library webhooks
================
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">![Project status](https://img.shields.io/badge/version-5.0.0-green.svg)
<img align="right" src="https://raw.githubusercontent.com/go-playground/webhooks/v5/logo.png">![Project status](https://img.shields.io/badge/version-5.1.0-green.svg)
[![Build Status](https://travis-ci.org/go-playground/webhooks.svg?branch=v5)](https://travis-ci.org/go-playground/webhooks)
[![Coverage Status](https://coveralls.io/repos/go-playground/webhooks/badge.svg?branch=v5&service=github)](https://coveralls.io/github/go-playground/webhooks?branch=v5)
[![Go Report Card](https://goreportcard.com/badge/go-playground/webhooks)](https://goreportcard.com/report/go-playground/webhooks)
+1 -1
View File
@@ -93,7 +93,7 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
}
uuid := r.Header.Get("X-Hook-UUID")
if uuid == "" {
if hook.uuid != "" && uuid == "" {
return nil, ErrMissingHookUUIDHeader
}