about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/presque/Role/Queue/WithContent.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/presque/Role/Queue/WithContent.pm b/lib/presque/Role/Queue/WithContent.pm
index df5679b..25e5e2f 100644
--- a/lib/presque/Role/Queue/WithContent.pm
+++ b/lib/presque/Role/Queue/WithContent.pm
@@ -19,8 +19,8 @@ role {
 
             return $self->http_error_content_type
               if (!$self->request->header('Content-Type')
-                || $self->request->header('Content-Type') ne
-                'application/json');
+                || $self->request->header('Content-Type') !~
+                m!application/json! );
 
             return $self->http_error("job is missing")
               if !$self->request->content;