Bug fix and updates in http implementation.
This commit is contained in:
parent
ed6012b4ab
commit
e4fdaa3ccc
2 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@
|
|||
#include "static-routing.h"
|
||||
#endif
|
||||
|
||||
#define DEBUG 1
|
||||
#define DEBUG 0
|
||||
#if DEBUG
|
||||
#include <stdio.h>
|
||||
#define PRINTF(...) printf(__VA_ARGS__)
|
||||
|
@ -346,7 +346,7 @@ parse_header(connection_state_t* conn_state, char* inputbuf)
|
|||
}
|
||||
|
||||
int
|
||||
http_set_payload(http_response_t* response, uint8_t* payload, uint16_t size)
|
||||
http_set_res_payload(http_response_t* response, uint8_t* payload, uint16_t size)
|
||||
{
|
||||
response->payload = copy_to_buffer(payload, size);
|
||||
if (response->payload) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue