Merge pull request #1957 from nwt/notification-filtering

Add notification filtering by target media type
This commit is contained in:
Richard Scothern 2016-09-19 10:41:03 -07:00 committed by GitHub
commit cfad4321c1
7 changed files with 112 additions and 16 deletions

View file

@ -62,6 +62,7 @@ var configStruct = Configuration{
Headers: http.Header{
"Authorization": []string{"Bearer <example>"},
},
IgnoredMediaTypes: []string{"application/octet-stream"},
},
},
},
@ -139,6 +140,8 @@ notifications:
url: http://example.com
headers:
Authorization: [Bearer <example>]
ignoredmediatypes:
- application/octet-stream
reporting:
bugsnag:
apikey: BugsnagApiKey
@ -165,6 +168,8 @@ notifications:
url: http://example.com
headers:
Authorization: [Bearer <example>]
ignoredmediatypes:
- application/octet-stream
http:
headers:
X-Content-Type-Options: [nosniff]