mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix upload attachment via API
Signed-off-by: Kaijia Feng <feng@kaijia.me>
This commit is contained in:
parent
ebc7fad1fa
commit
aff802713e
@ -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');
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user