#28887 closed defect (bug) (fixed)
Different data type for HTTP response code
| Reported by: | lonnylot | Owned by: | dd32 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.1 |
| Component: | HTTP API | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
Depending on the transport implementation (cURL or PHP Streams) used when calling wp_remote_get the returned data type for the response code will be different. If cURL is used then it will be an integer. If PHP Streams are used it will be a string. Since the transport implementation is abstracted away it would make it easier if the data types of the returns would also be consistent.
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
In 29849: