Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
wp-http-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-http-client
Commits
ea239727
Commit
ea239727
authored
7 months ago
by
Piotr Potrebka
Browse files
Options
Downloads
Patches
Plain Diff
fix: body response
parent
b157e35e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!11
fix: body response
Pipeline
#426506
passed with stages
in 29 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.txt
+3
-0
3 additions, 0 deletions
changelog.txt
src/Curl/CurlClient.php
+2
-2
2 additions, 2 deletions
src/Curl/CurlClient.php
with
5 additions
and
2 deletions
changelog.txt
+
3
−
0
View file @
ea239727
= 1.0.5 - 2024-10-07 =
* Fixed body response
= 1.0.4 - 2020-12-09 =
* Fixed issue with body
...
...
This diff is collapsed.
Click to expand it.
src/Curl/CurlClient.php
+
2
−
2
View file @
ea239727
...
...
@@ -155,8 +155,8 @@ class CurlClient implements HttpClient {
* @return array
*/
private
function
extractResponseHeadersAndBody
()
{
$rawBody
=
\trim
(
$this
->
rawResponse
)
;
$rawHeaders
=
\trim
(
implode
(
"
\r\n
"
,
$this
->
headers
)
);
$rawBody
=
$this
->
rawResponse
;
$rawHeaders
=
implode
(
"
\r\n
"
,
$this
->
headers
);
return
[
$rawHeaders
,
$rawBody
];
}
...
...
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