From 9775de3d78472719154b8ca1133a5db9fa1e1b41 Mon Sep 17 00:00:00 2001 From: Penghao Cen Date: Mon, 24 Oct 2016 14:30:31 +0800 Subject: [PATCH] Add prettyjws in pattern for signed manifest support --- src/ui/service/notification.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/service/notification.go b/src/ui/service/notification.go index 33ef0ba7a..a47ea60fa 100644 --- a/src/ui/service/notification.go +++ b/src/ui/service/notification.go @@ -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() {