diff options
author | Wolfy-J <[email protected]> | 2020-12-15 11:30:17 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2020-12-15 11:30:17 +0300 |
commit | 38892b66030e085ab78096df292f5cb964830fe2 (patch) | |
tree | 8952d37055f7dea624b647d553c8093ee5bdfaab | |
parent | cd5a6098b7d671c0fa980f0923f8d6d3733faf68 (diff) |
- fixing tests
-rw-r--r-- | plugins/http/uploads.go | 6 | ||||
-rw-r--r-- | tests/src/Http/PSR7Worker.php | 1 |
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) |