summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2020-12-15 11:30:17 +0300
committerWolfy-J <[email protected]>2020-12-15 11:30:17 +0300
commit38892b66030e085ab78096df292f5cb964830fe2 (patch)
tree8952d37055f7dea624b647d553c8093ee5bdfaab
parentcd5a6098b7d671c0fa980f0923f8d6d3733faf68 (diff)
- fixing tests
-rw-r--r--plugins/http/uploads.go6
-rw-r--r--tests/src/Http/PSR7Worker.php1
2 files changed, 4 insertions, 3 deletions
diff --git a/plugins/http/uploads.go b/plugins/http/uploads.go
index 5fddb75d..aeb41591 100644
--- a/plugins/http/uploads.go
+++ b/plugins/http/uploads.go
@@ -18,13 +18,13 @@ const (
UploadErrorNoFile = 4
// UploadErrorNoTmpDir - missing a temporary folder.
- UploadErrorNoTmpDir = 5
+ UploadErrorNoTmpDir = 6
// UploadErrorCantWrite - failed to write file to disk.
- UploadErrorCantWrite = 6
+ UploadErrorCantWrite = 7
// UploadErrorExtension - forbidden file extension.
- UploadErrorExtension = 7
+ UploadErrorExtension = 8
)
// Uploads tree manages uploaded files tree and temporary files.
diff --git a/tests/src/Http/PSR7Worker.php b/tests/src/Http/PSR7Worker.php
index e8900bcc..f16c4847 100644
--- a/tests/src/Http/PSR7Worker.php
+++ b/tests/src/Http/PSR7Worker.php
@@ -132,6 +132,7 @@ class PSR7Worker
$_SERVER
);
+
$request = $request
->withProtocolVersion(static::fetchProtocolVersion($httpRequest->protocol))
->withCookieParams($httpRequest->cookies)