Merge pull request #923 from caicloud/signed-manifest-support

Add prettyjws in pattern for signed manifest support
This commit is contained in:
Daniel Jiang 2016-10-26 14:19:28 +08:00 committed by GitHub
commit 4272d2e26f

View File

@ -35,7 +35,7 @@ type NotificationHandler struct {
beego.Controller beego.Controller
} }
const manifestPattern = `^application/vnd.docker.distribution.manifest.v\d\+json` const manifestPattern = `^application/vnd.docker.distribution.manifest.v\d\+(json|prettyjws)`
// Post handles POST request, and records audit log or refreshes cache based on event. // Post handles POST request, and records audit log or refreshes cache based on event.
func (n *NotificationHandler) Post() { func (n *NotificationHandler) Post() {