Merge pull request #1827 from UrBnW/httpdatanl
Allow new line in HTTP data
This commit is contained in:
commit
9cf9e3d165
|
@ -134,7 +134,7 @@ sub check_options {
|
|||
if (defined($options{request}->{$method . '_param'})) {
|
||||
$options{request}->{$method . '_params'} = {};
|
||||
foreach (@{$options{request}->{$method . '_param'}}) {
|
||||
if (/^([^=]+)={0,1}(.*)$/) {
|
||||
if (/^([^=]+)={0,1}(.*)$/s) {
|
||||
my $key = $1;
|
||||
my $value = defined($2) ? $2 : 1;
|
||||
if (defined($options{request}->{$method . '_params'}->{$key})) {
|
||||
|
|
Loading…
Reference in New Issue