mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Merge remote-tracking branch 'origin/refactor-changing-function-sdk-types' into refactor-changing-function-sdk-types
This commit is contained in:
@@ -726,6 +726,7 @@ class Response extends SwooleResponse
|
||||
}
|
||||
|
||||
$this
|
||||
->setContentType($multipart->exportHeader())
|
||||
->send($multipart->exportBody());
|
||||
}
|
||||
|
||||
|
||||
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user