Skip to content
Snippets Groups Projects
Commit 7fa1fde5 authored by dmitry's avatar dmitry
Browse files

[*] return headers and body in case on !200 responses

parent 3491640b
No related branches found
No related tags found
1 merge request!513[*] return headers and body in case on !200 responses
Pipeline #51679 passed with stage
in 12 minutes and 5 seconds
......@@ -572,7 +572,7 @@ bool dap_http_client_write_callback(dap_events_socket_t *a_esocket, void *a_arg)
dap_http_client_t *l_http_client = DAP_HTTP_CLIENT(a_esocket);
if (!l_http_client)
return false;
if (l_http_client->reply_status_code != Http_Status_OK || l_http_client->state_read == DAP_HTTP_CLIENT_STATE_NONE) {
if (l_http_client->state_read == DAP_HTTP_CLIENT_STATE_NONE) {
// No write data if error code set
l_http_client->esocket->flags |= DAP_SOCK_SIGNAL_CLOSE;
return false;
......
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