mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-30 04:01:47 +00:00
Merge pull request #44 from zborboa-google/patch-1
Make case-insensitive access to headers more obvious
This commit is contained in:
@@ -92,7 +92,7 @@ $curl->get('https://www.example.com/image.png');
|
||||
$curl = new Curl();
|
||||
$curl->get('https://www.example.com/image.png');
|
||||
echo $curl->response_headers['Content-Type'] . "\n"; // image/png
|
||||
echo $curl->response_headers['CoNTeNT-TYPE'] . "\n"; // image/png
|
||||
echo $curl->response_headers['CoNTeNT-TyPE'] . "\n"; // image/png
|
||||
```
|
||||
|
||||
```php
|
||||
|
||||
Reference in New Issue
Block a user