[vlc-devel] commit: Only skip \r or \n. (Antoine Cellerier )
git version control
git at videolan.org
Mon Dec 21 23:55:03 CET 2009
vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Mon Dec 21 23:52:47 2009 +0100| [e44e2294e7a587696965e3e1845b86a1350a7af1] | committer: Antoine Cellerier
Only skip \r or \n.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e44e2294e7a587696965e3e1845b86a1350a7af1
---
src/network/httpd.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/network/httpd.c b/src/network/httpd.c
index faa3e43..4b50568 100644
--- a/src/network/httpd.c
+++ b/src/network/httpd.c
@@ -577,8 +577,8 @@ httpd_HandlerCallBack( httpd_callback_sys_t *p_sys, httpd_client_t *cl,
{
/* Apache-style */
i_status = strtol( (char *)&answer->p_body[8], &psz_headers, 0 );
- if( *psz_headers ) psz_headers++;
- if( *psz_headers ) psz_headers++;
+ if( *psz_headers == '\r' || *psz_headers == '\n' ) psz_headers++;
+ if( *psz_headers == '\n' ) psz_headers++;
i_headers = answer->i_body - (psz_headers - (char *)answer->p_body);
}
else
More information about the vlc-devel
mailing list