Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#11872 closed defect (bug) (fixed)

Notice when HTTP response has headers only

Reported by: hakre Owned by: dd32
Milestone: 3.0 Priority: normal
Severity: normal Version: 3.0
Component: HTTP API Keywords: has-patch tested
Focuses: Cc:


When doing a HTTP request and recieving an answer that only contains headers, it does create a notice because the array index for the body actually does not exists.

It should not.

I ran over this while giving the health-check plugin a testdrive and it does return such http request responses.

Attachments (1)

11872.patch (835 bytes) - added by hakre 8 years ago.

Download all attachments as: .zip

Change History (3)

8 years ago

#1 @nacin
8 years ago

  • Component changed from Warnings/Notices to HTTP
  • Owner changed from westi to dd32

#2 @dd32
8 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [13849]) Avoid notices for requests with no body. Also fixes a few race conditions related to headers. Fixes #11872

Note: See TracTickets for help on using tickets.