diff options
author | gmaurice <germain.maurice@linkfluence.net> | 2011-03-19 18:07:21 +0100 |
---|---|---|
committer | gmaurice <germain.maurice@linkfluence.net> | 2011-03-19 18:07:21 +0100 |
commit | 547c76f63753bb03a862f788ef943c3ac4a7d7ff (patch) | |
tree | b49e55e0f90b8a3841700d9779207a8e8643ab5e /lib | |
parent | some corrections on basic tests (diff) | |
parent | less strict (diff) | |
download | presque-547c76f63753bb03a862f788ef943c3ac4a7d7ff.tar.gz |
Merge branch 'master' of git://github.com/franckcuny/presque
Diffstat (limited to 'lib')
-rw-r--r-- | lib/presque/Role/Queue/WithContent.pm | 4 |
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; |