diff options
-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) |