miniupnpc/miniwget.c: remove useless test
see
-/* $Id: miniwget.c,v 1.75 2016/01/24 17:24:36 nanard Exp $ */
+/* $Id: miniwget.c,v 1.78 2018/03/13 23:22:18 nanard Exp $ */
/* Project : miniupnp
* Website : http://miniupnp.free.fr/
* Author : Thomas Bernard
- * Copyright (c) 2005-2017 Thomas Bernard
+ * Copyright (c) 2005-2018 Thomas Bernard
* This software is subject to the conditions detailed in the
* LICENCE file provided in this distribution. */
@@ -230,8 +230,8 @@ getHTTPResponse(int s, int * size, int * status_code)
memcpy(buf, header_buf + endofheaders, n);
/* if(headers) */
}
- if(endofheaders)
- {
+ /* if we get there, endofheaders != 0.
+ * In the other case, there was a continue above */
/* content */
if(chunked)
{
@@ -340,7 +340,6 @@ getHTTPResponse(int s, int * size, int * status_code)
memcpy(content_buf + content_buf_used, buf, n);
content_buf_used += n;
}
- }
/* use the Content-Length header value if available */
if(content_length > 0 && content_buf_used >= (unsigned int)content_length)
{
