Merge branch '1.6.x' into refactor-changing-function-sdk-types

This commit is contained in:
Matej Bačo 2024-08-14 21:58:45 +02:00 committed by GitHub
commit f55ae4f485
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View file

@ -726,6 +726,7 @@ class Response extends SwooleResponse
}
$this
->setContentType($multipart->exportHeader())
->send($multipart->exportBody());
}

View file

@ -1491,6 +1491,8 @@ class FunctionsCustomServerTest extends Scope
$this->assertEquals(201, $execution['headers']['status-code']);
$this->assertStringContainsString('multipart/form-data', $execution['headers']['content-type']);
$contentType = explode(';', $execution['headers']['content-type']);
$this->assertStringContainsString('boundary=----', $contentType[1]);
$bytes = unpack('C*byte', $execution['body']['responseBody']);
$this->assertCount(3, $bytes);
$this->assertEquals(0, $bytes['byte1']);