Fix a few bugs

This commit is contained in:
Kamil Trzcinski
2022-04-06 13:19:52 +02:00
parent b6b82db8e4
commit 8eb514c6b0
3 changed files with 31 additions and 9 deletions

View File

@ -48,7 +48,7 @@ void http_snapshot(http_worker_t *worker, FILE *stream)
if (!buf) {
http_404_header(worker, stream);
fprintf(stream, "No snapshot captured yet.\r\n");
return;
goto error;
}
fprintf(stream, "HTTP/1.1 200 OK\r\n");