Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
http server: fix code block, fixes #3788
  • Loading branch information
perexg committed May 9, 2016
1 parent 9ddcb8d commit afdcecb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/http.c
Expand Up @@ -549,7 +549,7 @@ http_error(http_connection_t *hc, int error)

if (!atomic_get(&http_server_running)) return;

if (error != HTTP_STATUS_FOUND && error != HTTP_STATUS_MOVED)
if (error != HTTP_STATUS_FOUND && error != HTTP_STATUS_MOVED) {
level = LOG_INFO;
if (error == HTTP_STATUS_UNAUTHORIZED)
level = LOG_DEBUG;
Expand All @@ -558,6 +558,7 @@ http_error(http_connection_t *hc, int error)
tvhlog(level, "http", "%s: %s %s %s -- %d",
hc->hc_peer_ipstr, http_ver2str(hc->hc_version),
http_cmd2str(hc->hc_cmd), hc->hc_url, error);
}

if (hc->hc_version != RTSP_VERSION_1_0) {
htsbuf_queue_flush(&hc->hc_reply);
Expand Down

0 comments on commit afdcecb

Please sign in to comment.