|
|
@ -222,10 +222,10 @@ static void FLASH_FN sent_callback(void * arg) |
|
|
|
request_args * req = (request_args *)conn->reserve; |
|
|
|
request_args * req = (request_args *)conn->reserve; |
|
|
|
|
|
|
|
|
|
|
|
if (req->post_data == NULL) { |
|
|
|
if (req->post_data == NULL) { |
|
|
|
//dbg("All sent");
|
|
|
|
dbg("All sent"); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// The headers were sent, now send the contents.
|
|
|
|
// The headers were sent, now send the contents.
|
|
|
|
//dbg("Sending request body");
|
|
|
|
dbg("Sending request body"); |
|
|
|
if (req->secure) { |
|
|
|
if (req->secure) { |
|
|
|
#ifdef USE_SECURE |
|
|
|
#ifdef USE_SECURE |
|
|
|
espconn_secure_sent(conn, (uint8_t *)req->post_data, strlen(req->post_data)); |
|
|
|
espconn_secure_sent(conn, (uint8_t *)req->post_data, strlen(req->post_data)); |
|
|
|