Skip to content

Commit

Permalink
fix: Setting param to return scalar (#6613)
Browse files Browse the repository at this point in the history
  • Loading branch information
dipietroR authored Apr 13, 2022
1 parent 50fd7fb commit 9e80edf
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/ProductOpener/Display.pm
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,15 @@ sub analyze_request($)
param("json", 1);
}

$log->debug("got API request", { api => $request_ref->{api}, api_version => param("api_version"), api_method => param("api_method"), code => $request_ref->{code}, jqm => param("jqm"), json => param("json"), xml => param("xml") } ) if $log->is_debug();
$log->debug("got API request", {
api => $request_ref->{api},
api_version => scalar(param("api_version")),
api_method => scalar(param("api_method")),
code => $request_ref->{code},
jqm => scalar(param("jqm")),
json => scalar(param("json")),
xml => scalar(param("xml")) }
) if $log->is_debug();
}

# /search search endpoint, parameters will be parser by CGI.pm param()
Expand Down

0 comments on commit 9e80edf

Please sign in to comment.