Skip to content

Commit

Permalink
Item12952: re-enable POST check (disabled during debug)
Browse files Browse the repository at this point in the history
  • Loading branch information
crawford committed May 17, 2015
1 parent 6c34e58 commit c2516fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Foswiki/Contrib/JsonRpcContrib/Request.pm
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ sub new {
# check that this is a http POST
my $httpMethod = $request->method() || "jsonrpc";

# throw Foswiki::Contrib::JsonRpcContrib::Error( -32600,
# "Method must be POST" )
# unless $httpMethod =~ /post|jsonrpc/i;
throw Foswiki::Contrib::JsonRpcContrib::Error( -32600,
"Method must be POST" )
unless $httpMethod =~ /post|jsonrpc/i;

# some basic checks if this is a proper json-rpc 2.0 request

Expand Down

0 comments on commit c2516fd

Please sign in to comment.