Changeset 7a7d828981a38552138f8e008bbb0c829c7a42b8 in xas


Ignore:
Timestamp:
10/31/14 14:10:43 (6 years ago)
Author:
Kevin L. Esteb <kevin@…>
Branches:
master
Children:
e0cd9598453c239e061a84a0634a5fdcff8a4b6b
Parents:
91b017ea5b23ccf691f883c7610d7e7a493633a2
git-author:
Kevin L. Esteb <kevin@…> (10/31/14 14:10:43)
git-committer:
Kevin L. Esteb <kevin@…> (10/31/14 14:10:43)
Message:

Fixed a couple of logic errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/XAS/Lib/Curl/HTTP.pm

    r91b017ea5b23ccf691f883c7610d7e7a493633a2 r7a7d828981a38552138f8e008bbb0c829c7a42b8  
    1515  vars => { 
    1616    PARAMS => { 
    17       -headers         => { optional => 1, default => 0 }, 
     17      -keep_alive      => { optional => 1, default => 1 }, 
    1818      -followlocation  => { optional => 1, default => 1 }, 
    1919      -max_redirects   => { optional => 1, default => 3 }, 
     
    186186    # basic options 
    187187 
    188     $self->curl->setopt(CURLOPT_HEADER,            $self->headers); 
     188    $self->curl->setopt(CURLOPT_HEADER,            0); 
    189189    $self->curl->setopt(CURLOPT_VERBOSE,           $self->xdebug); 
    190190    $self->curl->setopt(CURLOPT_MAXREDIRS,         $self->max_redirects); 
     
    192192    $self->curl->setopt(CURLOPT_NOPROGRESS,        1); 
    193193    $self->curl->setopt(CURLOPT_TIMEOUT_MS,        $timeout); 
    194     $self->curl->setopt(CURLOPT_FORBID_REUSE,      !$self->keep_alive); 
     194    $self->curl->setopt(CURLOPT_FORBID_REUSE,      $self->keep_alive); 
    195195    $self->curl->setopt(CURLOPT_FOLLOWLOCATION,    $self->followlocation); 
    196196    $self->curl->setopt(CURLOPT_CONNECTTIMEOUT_MS, $connect_timeout); 
     
    287287=head1 METHODS 
    288288 
     289All true/false values use 0/1 as the indicator. 
     290 
    289291=head2 new 
    290292 
     
    293295=over 4 
    294296 
    295 =item B<-headers>          
    296  
    297 A toggle to tell curl to display headers, defaults to false. 
     297=item B<-keep_alive> 
     298 
     299A toggle to tell curl to forbid the reuse of sockets, defaults to true. 
    298300 
    299301=item B<-followlocation> 
    300302 
    301 A toggle to follow redirects, defaults to true. 
     303A toggle to tell curl to follow redirects, defaults to true. 
    302304 
    303305=item B<-max_redirects> 
Note: See TracChangeset for help on using the changeset viewer.