From d723d14b3e03e31f240e00aca228a42fb06f2012 Mon Sep 17 00:00:00 2001 From: Deyan Ginev Date: Mon, 1 Apr 2024 18:18:28 -0400 Subject: [PATCH] add status_code field for latexmls-based calls (#2339) --- bin/latexmlc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/latexmlc b/bin/latexmlc index fe6b016fd..c3e6232fe 100755 --- a/bin/latexmlc +++ b/bin/latexmlc @@ -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");