Skip to content
Snippets Groups Projects
Commit 9848d241 authored by Grzegorz Rola's avatar Grzegorz Rola
Browse files

bugfix(headers): default headers should overwrite built in headers

parent b7a832fd
No related branches found
No related tags found
1 merge request!6bugfix(headers): default headers should overwrite built in headers
Pipeline #5597 passed with stages
in 1 minute and 14 seconds
## [1.2.1] - 2020-12-08
### Fixed
- default headers should overwrite build in headers
## [1.2.0] - 2019-06-12 ## [1.2.0] - 2019-06-12
### Fixed ### Fixed
- CacheResolver in cached client - CacheResolver in cached client
## [1.1.0] - 2019-05-30 ## [1.1.0] - 2019-05-30
### Added ### Added
- Timeout in api client options interface - Timeout in api client options interface
...@@ -151,7 +151,7 @@ class ClientImplementation implements Client, LoggerAwareInterface ...@@ -151,7 +151,7 @@ class ClientImplementation implements Client, LoggerAwareInterface
'Accept-Encoding' => '*', 'Accept-Encoding' => '*',
'Content-Type' => $this->serializer->getMime() 'Content-Type' => $this->serializer->getMime()
); );
$headers = array_merge($this->defaultRequestHeaders, $headers); $headers = array_merge($headers, $this->defaultRequestHeaders);
return array_merge($headers, $request->getHeaders()); return array_merge($headers, $request->getHeaders());
} }
......
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