Skip to content

Commit

Permalink
add status_code field for latexmls-based calls (#2339)
Browse files Browse the repository at this point in the history
  • Loading branch information
dginev authored Apr 1, 2024
1 parent 38e663d commit d723d14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/latexmlc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ if ((!$sock) && $local && ($expire == -1)) {
: process_remote($address, $port, $route, $message, $sock));
if ($http_response->is_success) {
my $response = decode_json($http_response->content);
($result, $status, $log) = map { $$response{$_} } qw(result status log) if defined $response;
($result, $status, $status_code, $log) = map { $$response{$_} } qw(result status status_code log) if defined $response;
NoteSTDERR("Conversion complete: " . $$response{status});
} else {
die("Fatal:HTTP:" . $http_response->code() . " " . $http_response->message() . "\n");
Expand Down

0 comments on commit d723d14

Please sign in to comment.