Skip to content
Snippets Groups Projects
Commit e8533509 authored by Constantin P.'s avatar Constantin P. 💬
Browse files

Merge branch 'hotfix-13016-1' into 'master'

...

See merge request !375
parents cd1a82c1 e0d9c0df
No related branches found
No related tags found
1 merge request!375...
Pipeline #44286 passed with stage
in 18 minutes and 47 seconds
......@@ -493,6 +493,11 @@ void dap_http_client_read( dap_events_socket_t *a_esocket, void *a_arg )
} else if (l_http_client->proc->cache)
// No data, its over
dap_http_client_write(l_http_client);
else {
l_http_client->state_read = DAP_HTTP_CLIENT_STATE_NONE;
a_esocket->buf_in_size = 0;
break;
}
}
dap_events_socket_shrink_buf_in( a_esocket, l_len); /* Shrink input buffer over whole HTTP header */
} break;
......@@ -562,7 +567,7 @@ void dap_http_client_write(dap_http_client_t *a_http_client)
"%s: %s" CRLF, hdr->name, hdr->value);
dap_http_header_remove( &a_http_client->out_headers, hdr );
}
dap_events_socket_write_unsafe(a_http_client->esocket, CRLF, 2);/* Add final CRLF - HTTP's End-Of-Header */
dap_events_socket_write_unsafe(a_http_client->esocket, CRLF, 2); /* Add final CRLF - HTTP's End-Of-Header */
}
bool dap_http_client_write_callback(dap_events_socket_t *a_esocket, void *a_arg)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment