[7/7] http: Change an error log message to a warning

Message ID 1320794165-24248-7-git-send-email-martin@martin.st
State Committed
Commit 8ef79f42cadb0f6eefb033c62422d4c87f260cda
Headers show

Commit Message

Martin Storsjö Nov. 8, 2011, 11:16 p.m.
---
 libavformat/http.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Anton Khirnov Nov. 10, 2011, 8:42 a.m. | #1
On Wed,  9 Nov 2011 01:16:05 +0200, Martin Storsjö <martin@martin.st> wrote:
> ---
>  libavformat/http.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavformat/http.c b/libavformat/http.c
> index 326ed0f..783ac6a 100644
> --- a/libavformat/http.c
> +++ b/libavformat/http.c
> @@ -161,7 +161,7 @@ static int http_open(URLContext *h, const char *uri, int flags)
>      if (s->headers) {
>          int len = strlen(s->headers);
>          if (len < 2 || strcmp("\r\n", s->headers + len - 2))
> -            av_log(h, AV_LOG_ERROR, "No trailing CRLF found in HTTP header.\n");
> +            av_log(h, AV_LOG_WARNING, "No trailing CRLF found in HTTP header.\n");
>      }
>  
>      return http_open_cnx(h);
> -- 
> 1.7.3.1
> 

Ok.

Patch

diff --git a/libavformat/http.c b/libavformat/http.c
index 326ed0f..783ac6a 100644
--- a/libavformat/http.c
+++ b/libavformat/http.c
@@ -161,7 +161,7 @@  static int http_open(URLContext *h, const char *uri, int flags)
     if (s->headers) {
         int len = strlen(s->headers);
         if (len < 2 || strcmp("\r\n", s->headers + len - 2))
-            av_log(h, AV_LOG_ERROR, "No trailing CRLF found in HTTP header.\n");
+            av_log(h, AV_LOG_WARNING, "No trailing CRLF found in HTTP header.\n");
     }
 
     return http_open_cnx(h);