Make WordPress Core

Opened 15 years ago

Closed 15 years ago

#8504 closed defect (bug) (fixed)

Incorrect CURL options set in HTTP API

Reported by: sambauers's profile sambauers Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.7
Component: General Keywords: HTTP API, has-patch
Focuses: Cc:

Description

When making a HEAD request in the HTTP API via CURL the full body is fetched, it should only fetch the head. The attached patch conditionally sets CURLOPT_NOBODY to true.

Also the CURLOPT_RETURNTRANSFER setting is set conditionally then set back to "1" regardless. The attached patch assumes the conditional is doing the right thing.

These changes have been part of BackPress for a while now.

Attachments (1)

http_api_curl_HEAD.patch (819 bytes) - added by sambauers 15 years ago.

Download all attachments as: .zip

Change History (2)

#1 @jacobsantos
15 years ago

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

See [10087]

Note: See TracTickets for help on using tickets.