|
@@ -11123,7 +11123,7 @@ namespace Tqdev\PhpCrudApi {
|
11123
|
11123
|
$stream = $psr17Factory->createStream($content);
|
11124
|
11124
|
$stream->rewind();
|
11125
|
11125
|
$response = $response->withBody($stream);
|
11126
|
|
- $response = $response->withHeader('Content-Type', $contentType);
|
|
11126
|
+ $response = $response->withHeader('Content-Type', $contentType . '; charset=utf-8');
|
11127
|
11127
|
$response = $response->withHeader('Content-Length', strlen($content));
|
11128
|
11128
|
return $response;
|
11129
|
11129
|
}
|
|
@@ -11201,7 +11201,7 @@ namespace Tqdev\PhpCrudApi {
|
11201
|
11201
|
'username' => 'php-crud-api',
|
11202
|
11202
|
'password' => 'php-crud-api',
|
11203
|
11203
|
'database' => 'php-crud-api',
|
11204
|
|
- // d'debug' => false
|
|
11204
|
+ // 'debug' => false
|
11205
|
11205
|
]);
|
11206
|
11206
|
$request = RequestFactory::fromGlobals();
|
11207
|
11207
|
$api = new Api($config);
|