Make WordPress Core

Changeset 10087


Ignore:
Timestamp:
12/06/2008 10:09:05 AM (16 years ago)
Author:
westi
Message:

Ensure the curl transport supports HEAD requests. Merge from BackPress props sambauers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/http.php

    r10072 r10087  
    981981        curl_setopt( $handle, CURLOPT_URL, $url);
    982982
     983        if ( 'HEAD' === $r['method'] ) {
     984            curl_setopt( $handle, CURLOPT_NOBODY, true );
     985        }
     986
    983987        if ( true === $r['blocking'] ) {
    984988            curl_setopt( $handle, CURLOPT_HEADER, true );
     
    990994        }
    991995
    992         curl_setopt( $handle, CURLOPT_RETURNTRANSFER, 1 );
    993996        curl_setopt( $handle, CURLOPT_USERAGENT, $r['user-agent'] );
    994997        curl_setopt( $handle, CURLOPT_CONNECTTIMEOUT, 1 );
Note: See TracChangeset for help on using the changeset viewer.