Backport of svn rev. 558: HTTP version equal to 1.0 should failed as required

by the UPnP certification tool.

Patch submitted by Ronan Menard.


git-svn-id: https://pupnp.svn.sourceforge.net/svnroot/pupnp/trunk@559 119443c7-1b9e-41f8-b6fc-b9c35fce742c
This commit is contained in:
Marcelo Roberto Jimenez 2010-08-19 13:39:44 +00:00
parent b2e38b2fca
commit 03c858af51
3 changed files with 8 additions and 1 deletions

View File

@ -211,6 +211,10 @@ Version 1.8.0
Version 1.6.7 Version 1.6.7
******************************************************************************* *******************************************************************************
2010-08-19 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
* HTTP version equal to 1.0 should failed as required by the UPnP
certification tool. Patch submitted by Ronan Menard.
2010-06-28 Marcelo Jimenez <mroberto(at)users.sourceforge.net> 2010-06-28 Marcelo Jimenez <mroberto(at)users.sourceforge.net>
SF Bug Tracker [ 3022490 ] String declaration fix for patch applied in 3007407 SF Bug Tracker [ 3022490 ] String declaration fix for patch applied in 3007407
Hello, Hello,

1
THANKS
View File

@ -48,6 +48,7 @@ exempt of errors.
- Peter Hartley - Peter Hartley
- Rene Hexel - Rene Hexel
- Robert Gingher (robsbox) - Robert Gingher (robsbox)
- Ronan Menard
- Siva Chandran - Siva Chandran
- Stéphane Corthésy - Stéphane Corthésy
- Steve Bresson - Steve Bresson

View File

@ -1545,7 +1545,9 @@ parser_parse_responseline( INOUT http_parser_t * parser )
if( num_scanned != 3 || if( num_scanned != 3 ||
hmsg->major_version < 0 || hmsg->major_version < 0 ||
hmsg->minor_version < 0 || hmsg->status_code < 0 ) { /* HTTP version equals to 1.0 should fail as required by the
* UPnP certification tool */
hmsg->minor_version < 1 || hmsg->status_code < 0 ) {
// bad response line // bad response line
return PARSE_FAILURE; return PARSE_FAILURE;
} }