Skip to content
Snippets Groups Projects
Commit aebfbd97 authored by Lucas García's avatar Lucas García
Browse files

feat: application/json as default content type

parent 7159e47d
No related branches found
No related tags found
1 merge request!3Multi backend plugin
......@@ -303,7 +303,8 @@ class Http_Client
return array_merge([
'host' => $_SERVER['HTTP_HOST'],
'referer' => $_SERVER['HTTP_REFERER'],
'accept-language' => Http_Client::get_locale()
'accept-language' => Http_Client::get_locale(),
'content-type' => 'application/json',
], (array) $headers);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment