Преглед изворни кода

Remove workaround code, see if Zip 'Name' header obviates it

George S. Baugh пре 10 година
родитељ
комит
a9984e0001
1 измењених фајлова са 0 додато и 7 уклоњено
  1. 0 7
      lib/Selenium/Remote/Driver.pm

+ 0 - 7
lib/Selenium/Remote/Driver.pm

@@ -2479,13 +2479,6 @@ sub upload_file {
     my $res = { 'command' => 'uploadFile' };    # /session/:SessionId/file
     my $ret = $self->_execute_command( $res, $params );
 
-    #WORKAROUND: Since this is undocumented selenium functionality,
-    #work around a bug.
-    my ($drive, $path, $file) = File::Spec::Functions::splitpath($ret);
-    if (defined $raw_content && $file ne $filename) {
-        $ret = File::Spec::Functions::catpath($drive,$path,$filename);
-    }
-
     return $ret;
 }