@@ -166,14 +166,14 @@ |
||
166 | 166 | |
167 | 167 | private function _createHeaders($headers = null) |
168 | 168 | { |
169 | - $headers[] = $this->_api_key_var.$this->_api_key; |
|
170 | - if ($this->json === true) { |
|
169 | + $headers[] = $this->_api_key_var.$this->_api_key; |
|
170 | + if ($this->json === true) { |
|
171 | 171 | $headers[] = 'Content-Type: application/json'; |
172 | - } |
|
173 | - if ($this->accept === true) { |
|
172 | + } |
|
173 | + if ($this->accept === true) { |
|
174 | 174 | $headers[] = 'Accept: application/json'; |
175 | - } |
|
176 | - return $headers; |
|
175 | + } |
|
176 | + return $headers; |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | private function _parseHeaders($raw_headers) |