From: Peter Mottram Date: Mon, 30 Jan 2017 18:03:24 +0000 (+0100) Subject: Add support for HTTP PATCH for body_data X-Git-Tag: 5.90116~9^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=69bec7d7c4115dd8264a80ce016b4fcecad53371 Add support for HTTP PATCH for body_data --- diff --git a/lib/Catalyst/Request.pm b/lib/Catalyst/Request.pm index 1306b94..e4cb5c2 100644 --- a/lib/Catalyst/Request.pm +++ b/lib/Catalyst/Request.pm @@ -123,7 +123,7 @@ sub _build_body_data { # Not sure if these returns should not be exceptions... my $content_type = $self->content_type || return; - return unless ($self->method eq 'POST' || $self->method eq 'PUT'); + return unless ($self->method eq 'POST' || $self->method eq 'PUT' || $self->method eq 'PATCH'); my ($match) = grep { $content_type =~/$_/i } keys(%{$self->data_handlers});