Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-api-client
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wpdesk
wp-api-client
Commits
9848d241
Commit
9848d241
authored
4 years ago
by
Grzegorz Rola
Browse files
Options
Downloads
Patches
Plain Diff
bugfix(headers): default headers should overwrite built in headers
parent
b7a832fd
No related branches found
No related tags found
1 merge request
!6
bugfix(headers): default headers should overwrite built in headers
Pipeline
#5597
passed with stages
in 1 minute and 14 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+5
-0
5 additions, 0 deletions
CHANGELOG.md
src/Client/ClientImplementation.php
+1
-1
1 addition, 1 deletion
src/Client/ClientImplementation.php
with
6 additions
and
1 deletion
CHANGELOG.md
+
5
−
0
View file @
9848d241
## [1.2.1] - 2020-12-08
### Fixed
-
default headers should overwrite build in headers
## [1.2.0] - 2019-06-12
### Fixed
-
CacheResolver in cached client
## [1.1.0] - 2019-05-30
### Added
-
Timeout in api client options interface
This diff is collapsed.
Click to expand it.
src/Client/ClientImplementation.php
+
1
−
1
View file @
9848d241
...
...
@@ -151,7 +151,7 @@ class ClientImplementation implements Client, LoggerAwareInterface
'Accept-Encoding'
=>
'*'
,
'Content-Type'
=>
$this
->
serializer
->
getMime
()
);
$headers
=
array_merge
(
$this
->
defaultRequestHeaders
,
$headers
);
$headers
=
array_merge
(
$headers
,
$this
->
defaultRequestHeaders
);
return
array_merge
(
$headers
,
$request
->
getHeaders
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment