Opened 15 years ago
Closed 15 years ago
#8504 closed defect (bug) (fixed)
Incorrect CURL options set in HTTP API
Reported by: | 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)
Change History (2)
Note: See
TracTickets for help on using
tickets.
See [10087]