ignore trailing blank lines in HTTP requests

This commit is contained in:
schmirl 2009-02-13 07:02:25 +00:00
parent 64ac6278bf
commit c000d1d50b
2 changed files with 5 additions and 1 deletions

View File

@ -1,6 +1,7 @@
eDR Plugin 'streamdev' Revision History eDR Plugin 'streamdev' Revision History
--------------------------------------- ---------------------------------------
- ignore trailing blank lines in HTTP requests
- fixed parsing Min/MaxPriority from config (thanks to Joachim König-Baltes) - fixed parsing Min/MaxPriority from config (thanks to Joachim König-Baltes)
- updated Finnish translation (thanks to Rolf Ahrenberg) - updated Finnish translation (thanks to Rolf Ahrenberg)
- added Min/MaxPriority parameters. Can be used to keep client VDR from - added Min/MaxPriority parameters. Can be used to keep client VDR from

View File

@ -1,5 +1,5 @@
/* /*
* $Id: connectionHTTP.c,v 1.13.2.1 2008/10/14 11:05:59 schmirl Exp $ * $Id: connectionHTTP.c,v 1.13.2.2 2009/02/13 07:02:26 schmirl Exp $
*/ */
#include <ctype.h> #include <ctype.h>
@ -63,6 +63,9 @@ bool cConnectionHTTP::Command(char *Cmd)
Dprintf("header\n"); Dprintf("header\n");
return true; return true;
default: default:
// skip additional blank lines
if (*Cmd == '\0')
return true;
break; break;
} }
return false; // ??? shouldn't happen return false; // ??? shouldn't happen