@@ -175,14 +175,14 @@ |
||
| 175 | 175 | #$start = microtime(true); |
| 176 | 176 | #fwrite(STDERR, "\n".'Validating link: '.$href); |
| 177 | 177 | $context = stream_context_create([ |
| 178 | - 'http' => [ |
|
| 179 | - 'method' => 'HEAD', |
|
| 180 | - 'protocol_version' => 1.1, |
|
| 181 | - 'header' => [ |
|
| 182 | - 'Connection: close', |
|
| 183 | - ], |
|
| 184 | - ], |
|
| 185 | - ]); |
|
| 178 | + 'http' => [ |
|
| 179 | + 'method' => 'HEAD', |
|
| 180 | + 'protocol_version' => 1.1, |
|
| 181 | + 'header' => [ |
|
| 182 | + 'Connection: close', |
|
| 183 | + ], |
|
| 184 | + ], |
|
| 185 | + ]); |
|
| 186 | 186 | $result = null; |
| 187 | 187 | try { |
| 188 | 188 | $headers = get_headers($href, 0, $context); |