From 6a630a520aecb76aa9a0dc5dfc57de6c1b94eaac Mon Sep 17 00:00:00 2001 From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= Date: Sat, 2 Sep 2006 20:30:53 +0000 Subject: [PATCH] Merge [PATCH] http chunked encoding fix --- THANKS | 1 + modules/access/http.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/THANKS b/THANKS index 1550c9313e..2e8b3e406d 100644 --- a/THANKS +++ b/THANKS @@ -61,6 +61,7 @@ Eurodata Computer Club - VLC icon design (v0.8.4) François Seingier - TTL setting in the wx stream output dialog Frank Chao - Chinese Traditional translation Fumio Nakayama - Japanese translation +Georgi Chorbadzhiyski - HTTP access error handling fix Greg Farrell - rc interface "enqueue" command Gregory Hazel - wxWidgets fixes and improvements Goetz Waschk - Mandrake packages diff --git a/modules/access/http.c b/modules/access/http.c index b0c2044789..5d374f950d 100644 --- a/modules/access/http.c +++ b/modules/access/http.c @@ -487,8 +487,9 @@ static int Read( access_t *p_access, uint8_t *p_buffer, int i_len ) /* read the chunk header */ if( psz == NULL ) { + /* fatal error - end of file */ msg_Dbg( p_access, "failed reading chunk-header line" ); - return -1; + return 0; } p_sys->i_chunk = strtoll( psz, NULL, 16 ); free( psz ); -- 2.39.2