From fb7b4baa3256f7fc354e99b87292a5bc353ff6fa Mon Sep 17 00:00:00 2001 From: Anthony Axenov Date: Sun, 13 Aug 2023 11:01:00 +0800 Subject: [PATCH] Fixed wget file format (cherry picked from commit 0febfd38aa3047555d34f7e125adb3773ee8a2da) --- src/Exporters/Wget/WgetRequest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Exporters/Wget/WgetRequest.php b/src/Exporters/Wget/WgetRequest.php index f5023fb..01ccb1d 100644 --- a/src/Exporters/Wget/WgetRequest.php +++ b/src/Exporters/Wget/WgetRequest.php @@ -53,7 +53,7 @@ class WgetRequest extends AbstractRequest $output[] = http_build_query($params); return $output; default: - return ["\t$this->body"]; + return ["\t'$this->body' \ "]; } } @@ -75,7 +75,6 @@ class WgetRequest extends AbstractRequest $this->prepareHeaders(), $this->prepareBody() ); - $output[] = rtrim(array_pop($output), '\ '); $output[] = "\t'$this->url'"; return implode(PHP_EOL, array_merge($output, [''])); }