diff options
author | franck cuny <franck@lumberjaph.net> | 2010-11-29 18:23:08 +0100 |
---|---|---|
committer | franck cuny <franck@lumberjaph.net> | 2010-11-29 18:23:08 +0100 |
commit | 301e554bba04cf42bda18e8e881a508855ff83d5 (patch) | |
tree | 4d08bd626367bd2cd33210bc9bfafd82a346bbfd /lib/presque | |
parent | fix missing method (diff) | |
download | presque-301e554bba04cf42bda18e8e881a508855ff83d5.tar.gz |
less strict
Diffstat (limited to '')
-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; |