Przeglądaj źródła

[http] Report unsuccessful response status lines at DBGVL_LOG

The precise HTTP response status code is currently visible only at
DBGLVL_EXTRA.  Allow for easier debugging by reporting the whole
status line at DBGLVL_LOG for any unsuccessful responses.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 7 lat temu
rodzic
commit
659c484efc
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2
    0
      src/net/tcp/httpcore.c

+ 2
- 0
src/net/tcp/httpcore.c Wyświetl plik

@@ -1163,6 +1163,8 @@ static int http_parse_status ( struct http_transaction *http, char *line ) {
1163 1163
 		response_rc = -EIO_OTHER;
1164 1164
 	}
1165 1165
 	http->response.rc = response_rc;
1166
+	if ( response_rc )
1167
+		DBGC ( http, "HTTP %p status %s\n", http, status );
1166 1168
 
1167 1169
 	return 0;
1168 1170
 }

Ładowanie…
Anuluj
Zapisz