| @@ 106-115 (lines=10) @@ | ||
| 103 | * |
|
| 104 | * @return array |
|
| 105 | */ |
|
| 106 | private function add_default_headers($headers) |
|
| 107 | { |
|
| 108 | foreach ($this->headers as $key => $value) { |
|
| 109 | if (!isset($headers[$key])) { |
|
| 110 | $headers[$key] = $value; |
|
| 111 | } |
|
| 112 | } |
|
| 113 | ||
| 114 | return $headers; |
|
| 115 | } |
|
| 116 | } |
|
| 117 | ||
| @@ 155-164 (lines=10) @@ | ||
| 152 | * |
|
| 153 | * @return array |
|
| 154 | */ |
|
| 155 | protected function addDefaultHeaders($headers) |
|
| 156 | { |
|
| 157 | foreach ($this->headers as $key => $value) { |
|
| 158 | if (!isset($headers[$key])) { |
|
| 159 | $headers[$key] = $value; |
|
| 160 | } |
|
| 161 | } |
|
| 162 | ||
| 163 | return $headers; |
|
| 164 | } |
|
| 165 | } |
|
| 166 | ||