mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-16 01:06:46 +00:00
Merge pull request #7335 from fengkaijia/patch-1
Fix upload attachment via API
This commit is contained in:
@@ -45,8 +45,8 @@ class AcceptHeaders
|
|||||||
public function handle($request, $next): mixed
|
public function handle($request, $next): mixed
|
||||||
{
|
{
|
||||||
$method = $request->getMethod();
|
$method = $request->getMethod();
|
||||||
$accepts = ['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'];
|
$contentTypes = ['application/x-www-form-urlencoded', 'application/json', 'application/vnd.api+json', 'application/octet-stream'];
|
||||||
$submitted = (string)$request->header('Content-Type');
|
$submitted = (string)$request->header('Content-Type');
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user