about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgmaurice <germain.maurice@linkfluence.net>2011-03-19 18:07:21 +0100
committergmaurice <germain.maurice@linkfluence.net>2011-03-19 18:07:21 +0100
commit547c76f63753bb03a862f788ef943c3ac4a7d7ff (patch)
treeb49e55e0f90b8a3841700d9779207a8e8643ab5e
parentsome corrections on basic tests (diff)
parentless strict (diff)
downloadpresque-547c76f63753bb03a862f788ef943c3ac4a7d7ff.tar.gz
Merge branch 'master' of git://github.com/franckcuny/presque
-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;