Bug fix and updates in http implementation.

This commit is contained in:
doganyazar 2010-11-24 10:15:10 +00:00
parent ed6012b4ab
commit e4fdaa3ccc
2 changed files with 3 additions and 3 deletions

View file

@ -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) {

View file

@ -34,7 +34,7 @@ int http_set_res_header(http_response_t* response, const char* name, const char*
*/
const char* http_get_req_header(http_request_t* request, const char* name);
int http_set_payload(http_response_t* response, uint8_t* payload, uint16_t size);
int http_set_res_payload(http_response_t* response, uint8_t* payload, uint16_t size);
/*
* Returns query variable in the URL.