mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
fix netplay UPNP binding for specific router behavior (#13399)
* fix netplay UPNP binding for specific router behavior * use ISSPACE macro
This commit is contained in:
parent
c752f9b0de
commit
e0ad9f7e26
@ -197,6 +197,7 @@ rxml_document_t *rxml_load_document_string(const char *str)
|
||||
node->name = strdup(x.elem);
|
||||
|
||||
attr = NULL;
|
||||
valptr = buf->val;
|
||||
|
||||
++level;
|
||||
break;
|
||||
|
@ -919,11 +919,14 @@ bool net_http_update(struct http_t *state, size_t* progress, size_t* total)
|
||||
}
|
||||
else
|
||||
{
|
||||
if (string_starts_with_case_insensitive(state->data, "Content-Length: "))
|
||||
if (string_starts_with_case_insensitive(state->data, "Content-Length:"))
|
||||
{
|
||||
char* ptr = state->data + STRLEN_CONST("Content-Length:");
|
||||
while (ISSPACE(*ptr))
|
||||
++ptr;
|
||||
|
||||
state->bodytype = T_LEN;
|
||||
state->len = strtol(state->data +
|
||||
STRLEN_CONST("Content-Length: "), NULL, 10);
|
||||
state->len = strtol(ptr, NULL, 10);
|
||||
}
|
||||
if (string_is_equal_case_insensitive(state->data, "Transfer-Encoding: chunked"))
|
||||
state->bodytype = T_CHUNK;
|
||||
|
Loading…
Reference in New Issue
Block a user