Bug Fix on M-SEARCH.
Do not answer to M-SEARCH using HTTP version 1.0 as specified by the
UPnP Device Architecture.
(cherry picked from commit 6c6fb3707f
)
This commit is contained in:
parent
259bed7787
commit
5cf603dcab
@ -255,6 +255,13 @@ Version 1.8.0
|
||||
Version 1.6.14
|
||||
*******************************************************************************
|
||||
|
||||
2011-07-20 Marc Essayan <marc.essayan(at)orange-ftgroup.com>
|
||||
|
||||
Bug Fix on M-SEARCH.
|
||||
|
||||
Do not answer to M-SEARCH using HTTP version 1.0 as specified by the
|
||||
UPnP Device Architecture.
|
||||
|
||||
2011-03-18 Iain Denniston <iain.denniston(at)gmail.com>
|
||||
|
||||
Fixes for compilation under Windows (specifically MSVC). Also added
|
||||
|
@ -1310,7 +1310,12 @@ parser_parse_requestline( INOUT http_parser_t * parser )
|
||||
&hmsg->major_version, &hmsg->minor_version );
|
||||
version_str.buf[version_str.length] = save_char; /* restore */
|
||||
if( num_scanned != 2 ||
|
||||
hmsg->major_version < 0 || hmsg->minor_version < 0 ) {
|
||||
/* HTTP version equals to 1.0 should fail for MSEARCH as required by the
|
||||
* UPnP certification tool */
|
||||
hmsg->major_version < 0 || ( ( hmsg->major_version == 1 )
|
||||
&& ( hmsg->minor_version < 1 )
|
||||
&& ( Http_Method_Table[index].id == HTTPMETHOD_MSEARCH ) ) ) {
|
||||
parser->http_error_code = HTTP_HTTP_VERSION_NOT_SUPPORTED;
|
||||
/* error; bad http version */
|
||||
return PARSE_FAILURE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user