upnphttp: Fix inadvertently removed line from 8e201fe.
This commit is contained in:
parent
98fbb5b98b
commit
f85f5afe65
@ -161,6 +161,7 @@ ParseHttpHeaders(struct upnphttp * h)
|
|||||||
p = colon;
|
p = colon;
|
||||||
while(*p && (*p < '0' || *p > '9'))
|
while(*p && (*p < '0' || *p > '9'))
|
||||||
p++;
|
p++;
|
||||||
|
h->req_contentlen = atoi(p);
|
||||||
if(h->req_contentlen < 0) {
|
if(h->req_contentlen < 0) {
|
||||||
DPRINTF(E_WARN, L_HTTP, "Invalid Content-Length %d", h->req_contentlen);
|
DPRINTF(E_WARN, L_HTTP, "Invalid Content-Length %d", h->req_contentlen);
|
||||||
h->req_contentlen = 0;
|
h->req_contentlen = 0;
|
||||||
@ -878,7 +879,7 @@ ProcessHttpQuery_upnphttp(struct upnphttp * h)
|
|||||||
h->state = 100;
|
h->state = 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINTF(E_DEBUG, L_HTTP, "HTTP REQUEST: %.*s\n", h->req_buflen, h->req_buf);
|
DPRINTF(E_DEBUG, L_HTTP, "HTTP REQUEST[%d]: %.*s\n", h->state, h->req_buflen, h->req_buf);
|
||||||
if(strcmp("POST", HttpCommand) == 0)
|
if(strcmp("POST", HttpCommand) == 0)
|
||||||
{
|
{
|
||||||
h->req_command = EPost;
|
h->req_command = EPost;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user