Skip to content

Commit

Permalink
Merge pull request #34 from jsimonet/addPatch
Browse files Browse the repository at this point in the history
Add PATCH http method request.
  • Loading branch information
supernovus committed Nov 21, 2016
2 parents ddf9a6a + a208ab0 commit ff74c20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/HTTP/Easy.pm6
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,12 @@ method run
next;
}
message($request);

if $.debug { message("Finished parsing headers: "~@headers.perl); }
my ($method, $uri, $protocol) = $request.split(/\s/);
if (!$protocol) { $protocol = DEFAULT_PROTOCOL; }
unless $method eq 'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE'
{
unless $method eq 'GET' | 'POST' | 'HEAD' | 'PUT' | 'DELETE' | 'PATCH'
{
$!connection.print(self.unhandled-method);
$!connection.close;
next;
Expand Down

0 comments on commit ff74c20

Please sign in to comment.