Changeset 4268


Ignore:
Timestamp:
11/15/09 20:41:21 (10 years ago)
Author:
ronosman
Message:

Bug 1234 fixed : use Mozilla/pLoader as user agent name.

Location:
extensions/pLoader/trunk/src/Uploader
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/pLoader/trunk/src/Uploader/GUI/wxApp.pm

    r4152 r4268  
    551551                chunk_size     => $self->chunk_size, 
    552552                use_offline    => $self->use_offline, 
     553                version        => $self->version, 
    553554            } 
    554555        ) 
  • extensions/pLoader/trunk/src/Uploader/PWG.pm

    r3472 r4268  
    3939           branding 
    4040           use_offline 
     41           version 
    4142      /  
    4243); 
     
    4950 
    5051    # for web services     
    51     $self->SUPER::Init(); 
     52    $self->SUPER::Init( $self->version ); 
    5253 
    5354    if(!$self->use_offline){ 
  • extensions/pLoader/trunk/src/Uploader/PWG/WebServices.pm

    r4121 r4268  
    6666 
    6767sub Init { 
    68     my ( $self ) = @_ ; 
     68    my ( $self, $version ) = @_ ; 
    6969  
    7070    $self->uagent( 
    71         LWP::UserAgent->new 
    72     ); 
    73      
     71        LWP::UserAgent->new( 
     72            agent => sprintf("Mozilla/pLoader %s", $version)         
     73        ) 
     74    ); 
    7475     
    7576    $self->uagent->cookie_jar({});       
Note: See TracChangeset for help on using the changeset viewer.