File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ use VWF::Utils;
2727use Error;
2828use Fatal qw( :void open) ;
2929use File::pfopen;
30+ use Params::Get;
3031use Scalar::Util;
3132
3233# TODO: read this from the config file
@@ -400,7 +401,7 @@ Returns the HTTP header section, terminated by an empty line
400401sub http
401402{
402403 my $self = shift ;
403- my % params = ( ref ( $_ [0]) eq ' HASH ' ) ? %{ $_ [0]} : @_ ;
404+ my $ params = Params::Get::get_params( undef , @_ ) ;
404405
405406 # Handle session cookies
406407 # TODO: Only session cookies as the moment
@@ -416,9 +417,9 @@ sub http
416417 # my $language = $self->{_lingua} ? $self->{_lingua}->language() : 'English';
417418
418419 my $rc ;
419- if ($params {' Content-Type' }) {
420+ if ($params -> {' Content-Type' }) {
420421 # Allow the content type to be forceably set
421- $rc = $params {' Content-Type' } . " \n " ;
422+ $rc = $params -> {' Content-Type' } . " \n " ;
422423 } else {
423424 # Determine content type
424425 my $filename = $self -> get_template_path();
You can’t perform that action at this time.
0 commit comments