Fixed wget file format

(cherry picked from commit 0febfd38aa3047555d34f7e125adb3773ee8a2da)
This commit is contained in:
Anthony Axenov 2023-08-13 11:01:00 +08:00
parent 2c4eedbf8b
commit fb7b4baa32
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC

View File

@ -53,7 +53,7 @@ class WgetRequest extends AbstractRequest
$output[] = http_build_query($params); $output[] = http_build_query($params);
return $output; return $output;
default: default:
return ["\t$this->body"]; return ["\t'$this->body' \ "];
} }
} }
@ -75,7 +75,6 @@ class WgetRequest extends AbstractRequest
$this->prepareHeaders(), $this->prepareHeaders(),
$this->prepareBody() $this->prepareBody()
); );
$output[] = rtrim(array_pop($output), '\ ');
$output[] = "\t'$this->url'"; $output[] = "\t'$this->url'";
return implode(PHP_EOL, array_merge($output, [''])); return implode(PHP_EOL, array_merge($output, ['']));
} }