Merge pull request #1827 from UrBnW/httpdatanl

Allow new line in HTTP data
This commit is contained in:
qgarnier 2020-02-04 13:49:14 +01:00 committed by GitHub
commit 9cf9e3d165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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})) {