parent
ef94635100
commit
8945a6ee15
|
@ -1,8 +1,8 @@
|
||||||
/* $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
|
/* Project : miniupnp
|
||||||
* Website : http://miniupnp.free.fr/
|
* Website : http://miniupnp.free.fr/
|
||||||
* Author : Thomas Bernard
|
* 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
|
* This software is subject to the conditions detailed in the
|
||||||
* LICENCE file provided in this distribution. */
|
* LICENCE file provided in this distribution. */
|
||||||
|
|
||||||
|
@ -230,8 +230,8 @@ getHTTPResponse(int s, int * size, int * status_code)
|
||||||
memcpy(buf, header_buf + endofheaders, n);
|
memcpy(buf, header_buf + endofheaders, n);
|
||||||
/* if(headers) */
|
/* if(headers) */
|
||||||
}
|
}
|
||||||
if(endofheaders)
|
/* if we get there, endofheaders != 0.
|
||||||
{
|
* In the other case, there was a continue above */
|
||||||
/* content */
|
/* content */
|
||||||
if(chunked)
|
if(chunked)
|
||||||
{
|
{
|
||||||
|
@ -340,7 +340,6 @@ getHTTPResponse(int s, int * size, int * status_code)
|
||||||
memcpy(content_buf + content_buf_used, buf, n);
|
memcpy(content_buf + content_buf_used, buf, n);
|
||||||
content_buf_used += n;
|
content_buf_used += n;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
/* use the Content-Length header value if available */
|
/* use the Content-Length header value if available */
|
||||||
if(content_length > 0 && content_buf_used >= (unsigned int)content_length)
|
if(content_length > 0 && content_buf_used >= (unsigned int)content_length)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue