Project

General

Profile

Bug #3788 » mod_fix_http_misleading-indentation.patch

Sebastian K., 2016-05-08 22:26

View differences:

./tvheadend-git.new/src/http.c 2016-05-08 22:02:59.000000000 +0200
551 551

  
552 552
  if (error != HTTP_STATUS_FOUND && error != HTTP_STATUS_MOVED)
553 553
    level = LOG_INFO;
554
    if (error == HTTP_STATUS_UNAUTHORIZED)
555
      level = LOG_DEBUG;
556
    else if (error == HTTP_STATUS_BAD_REQUEST || error > HTTP_STATUS_UNAUTHORIZED)
557
      level = LOG_ERR;
558
    tvhlog(level, "http", "%s: %s %s %s -- %d",
559
	   hc->hc_peer_ipstr, http_ver2str(hc->hc_version),
560
           http_cmd2str(hc->hc_cmd), hc->hc_url, error);
554
  if (error == HTTP_STATUS_UNAUTHORIZED)
555
    level = LOG_DEBUG;
556
  else if (error == HTTP_STATUS_BAD_REQUEST || error > HTTP_STATUS_UNAUTHORIZED)
557
    level = LOG_ERR;
558
  tvhlog(level, "http", "%s: %s %s %s -- %d",
559
         hc->hc_peer_ipstr, http_ver2str(hc->hc_version),
560
         http_cmd2str(hc->hc_cmd), hc->hc_url, error);
561 561

  
562 562
  if (hc->hc_version != RTSP_VERSION_1_0) {
563 563
    htsbuf_queue_flush(&hc->hc_reply);
(2-2/2)