From e88d9dbedc4f35a5f3d7f6614d3156e6045faefc Mon Sep 17 00:00:00 2001 From: Marcelo Roberto Jimenez Date: Thu, 23 Feb 2012 15:20:02 -0200 Subject: [PATCH] White spaces. --- upnp/src/genlib/net/http/httpparser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/upnp/src/genlib/net/http/httpparser.c b/upnp/src/genlib/net/http/httpparser.c index 09522fc..5a193cc 100644 --- a/upnp/src/genlib/net/http/httpparser.c +++ b/upnp/src/genlib/net/http/httpparser.c @@ -1309,12 +1309,12 @@ parser_parse_requestline( INOUT http_parser_t * parser ) num_scanned = sscanf( version_str.buf, "%d . %d", &hmsg->major_version, &hmsg->minor_version ); version_str.buf[version_str.length] = save_char; /* restore */ - if( num_scanned != 2 || + if (num_scanned != 2 || /* 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 ) ) ) { + 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;