[libsoup] Remove a redundant check



commit 3732c37a3101e97c815b0a3482355b5c144c191c
Author: Dan Winship <danw gnome org>
Date:   Sun Aug 9 09:16:31 2009 -0400

    Remove a redundant check

 libsoup/soup-headers.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libsoup/soup-headers.c b/libsoup/soup-headers.c
index 6703ad6..465c4f7 100644
--- a/libsoup/soup-headers.c
+++ b/libsoup/soup-headers.c
@@ -231,7 +231,7 @@ soup_headers_parse_request (const char          *str,
 	version_end = p;
 	if (major_version != 1)
 		return SOUP_STATUS_HTTP_VERSION_NOT_SUPPORTED;
-	if (minor_version < 0 || minor_version > 1)
+	if (minor_version > 1)
 		return SOUP_STATUS_HTTP_VERSION_NOT_SUPPORTED;
 
 	headers = version_end;
@@ -293,7 +293,7 @@ soup_headers_parse_status_line (const char       *status_line,
 		minor_version = strtoul (p + 1, &p, 10);
 		if (major_version != 1)
 			return FALSE;
-		if (minor_version < 0 || minor_version > 1)
+		if (minor_version > 1)
 			return FALSE;
 		if (ver)
 			*ver = (minor_version == 0) ? SOUP_HTTP_1_0 : SOUP_HTTP_1_1;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]