HttpProxy bug fix

This commit is contained in:
Eric Kennedy 2006-07-21 02:09:42 +00:00
parent 012e6ee84a
commit fc0a50661f
2 changed files with 3 additions and 2 deletions

View file

@ -317,11 +317,11 @@ sub view {
my $uploadFile = $self->session->request->upload($self->session->form->process('HttpProxy_'.$input_name));
if(-r $uploadFile) { # Found uploaded file
@formUpload=($uploadFile, qq/$self->session->form->process('HttpProxy_'.$input_name)/);
@formUpload=($uploadFile, $self->session->form->process('HttpProxy_'.$input_name));
$formdata{$input_name}=\@formUpload;
$contentType = 'form-data'; # Different Content Type header for file upload
} else {
$formdata{$input_name}=qq/$self->session->form->process('HttpProxy_'.$input_name)/;
$formdata{$input_name}=$self->session->form->process('HttpProxy_'.$input_name);
}
}
# Create POST request