From ae65ab4dc442000d3b0ca570a8eb9c57064b194a Mon Sep 17 00:00:00 2001 From: Oscar Date: Sun, 22 May 2016 19:32:18 +0200 Subject: [PATCH] Fix reset method --- src/ArtaxComposer/Service/ArtaxService.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ArtaxComposer/Service/ArtaxService.php b/src/ArtaxComposer/Service/ArtaxService.php index 742906b..22a63a7 100644 --- a/src/ArtaxComposer/Service/ArtaxService.php +++ b/src/ArtaxComposer/Service/ArtaxService.php @@ -587,6 +587,12 @@ public function reset() $this->cacheTtl = null; $this->headers = []; $this->headersToReturn = []; + $this->debug = false; + + // default headers specificied in config + if (isset($this->config['default_headers'])) { + $this->setHeaders($this->config['default_headers']); + } return $this; }