Skip to content

Commit eb485e0

Browse files
committed
Preserve response headers, fix composer autoload
1 parent ef19e6a commit eb485e0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
],
1515
"autoload": {
1616
"psr-4": {
17-
"Webflow\\": "src/"
17+
"Webflow\\": "src/Webflow/"
1818
}
1919
},
2020
"minimum-stability": "stable"

src/Webflow/Api.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ private function request(string $path, string $method, array $data = []) {
5757
curl_setopt_array($curl, $options);
5858
$response = curl_exec($curl);
5959
curl_close($curl);
60+
list($headers, $body) = explode("\r\n\r\n", $response, 2);
6061
return $this->parse($body);
6162

6263
}

0 commit comments

Comments
 (0)