Merge pull request #7335 from fengkaijia/patch-1

Fix upload attachment via API
This commit is contained in:
James Cole
2023-04-07 17:01:08 +02:00
committed by GitHub

View File

@@ -45,8 +45,8 @@ class AcceptHeaders
public function handle($request, $next): mixed
{
$method = $request->getMethod();
$accepts = ['application/x-www-form-urlencoded', 'application/json', 'application/vnd.api+json', '*/*'];
$contentTypes = ['application/x-www-form-urlencoded', 'application/json', 'application/vnd.api+json'];
$accepts = ['application/x-www-form-urlencoded', 'application/json', 'application/vnd.api+json', 'application/octet-stream', '*/*'];
$contentTypes = ['application/x-www-form-urlencoded', 'application/json', 'application/vnd.api+json', 'application/octet-stream'];
$submitted = (string)$request->header('Content-Type');