mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
Bug fix and updates in http implementation.
This commit is contained in:
parent
ed6012b4ab
commit
e4fdaa3ccc
@ -11,7 +11,7 @@
|
|||||||
#include "static-routing.h"
|
#include "static-routing.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DEBUG 1
|
#define DEBUG 0
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#define PRINTF(...) printf(__VA_ARGS__)
|
#define PRINTF(...) printf(__VA_ARGS__)
|
||||||
@ -346,7 +346,7 @@ parse_header(connection_state_t* conn_state, char* inputbuf)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
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);
|
response->payload = copy_to_buffer(payload, size);
|
||||||
if (response->payload) {
|
if (response->payload) {
|
||||||
|
@ -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);
|
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.
|
* Returns query variable in the URL.
|
||||||
|
Loading…
Reference in New Issue
Block a user