Skip to content

Commit 45870ca

Browse files
committed
Example code consistency.
1 parent 35f0631 commit 45870ca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.markdown

+2-3
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,9 @@ Accessing repeated headers in the response instance:
174174

175175
``` php
176176
$result = $api->get('/');
177-
if(is_array($result->headers->content_type))
178-
var_dump($result->headers->content_type[0]);
177+
var_dump($result->headers->content_type);
179178

180-
=> "text/html"
179+
=> ["text/html", "text/html; charset=UTF-8"]
181180
```
182181

183182
Passing repeated headers and parameters in a request:

0 commit comments

Comments
 (0)