From 301e554bba04cf42bda18e8e881a508855ff83d5 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Mon, 29 Nov 2010 18:23:08 +0100 Subject: less strict --- lib/presque/Role/Queue/WithContent.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/presque') 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; -- cgit 1.4.1