Add prettyjws in pattern for signed manifest support

This commit is contained in:
Penghao Cen 2016-10-24 14:30:31 +08:00
parent 3085d24bab
commit 9775de3d78

View File

@ -35,7 +35,7 @@ type NotificationHandler struct {
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.
func (n *NotificationHandler) Post() {