diff --git a/.gitignore b/.gitignore index 0668b48..5572f02 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ composer.phar -.idea \ No newline at end of file +.idea +tests \ No newline at end of file diff --git a/src/Wuunder/Http/Request.php b/src/Wuunder/Http/Request.php index 13e7657..2097180 100644 --- a/src/Wuunder/Http/Request.php +++ b/src/Wuunder/Http/Request.php @@ -16,7 +16,7 @@ public function __construct($url, $apiKey) $this->apiKey = $apiKey; } - abstract protected function send(); + abstract protected function seParcelshopsApiResponsend(); /** * Returns the whole response from a response @@ -33,7 +33,7 @@ public function getResponse() { * @return $result (body) */ public function getBody() { - return substr($this->result, strpos($this->result, "\r\n\r\n")); + return substr($this->result, $this->headerSize); } /**