Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
78f7a74689
12 changed files with 281 additions and 273 deletions
|
@ -7,7 +7,7 @@
|
|||
#include "buffer.h"
|
||||
#include "rest-util.h"
|
||||
|
||||
#if !UIP_CONF_IPV6_RPL
|
||||
#if !UIP_CONF_IPV6_RPL && !defined (CONTIKI_TARGET_MINIMAL_NET)
|
||||
#include "static-routing.h"
|
||||
#endif
|
||||
|
||||
|
@ -235,8 +235,6 @@ is_method_handled(connection_state_t* conn_state, const char* method)
|
|||
/*other method types can be added here if needed*/
|
||||
if(strncmp(method, http_get_string, 3) == 0) {
|
||||
conn_state->request.request_type = HTTP_METHOD_GET;
|
||||
} else if(strncmp(method, http_head_string, 4) == 0) {
|
||||
conn_state->request.request_type = HTTP_METHOD_HEAD;
|
||||
} else if (strncmp(method, http_post_string, 4) == 0) {
|
||||
conn_state->request.request_type = HTTP_METHOD_POST;
|
||||
} else if (strncmp(method, http_put_string, 3) == 0) {
|
||||
|
@ -595,7 +593,7 @@ PROCESS_THREAD(http_server, ev, data)
|
|||
PROCESS_BEGIN();
|
||||
|
||||
/* if static routes are used rather than RPL */
|
||||
#if !UIP_CONF_IPV6_RPL
|
||||
#if !UIP_CONF_IPV6_RPL && !defined (CONTIKI_TARGET_MINIMAL_NET)
|
||||
set_global_address();
|
||||
configure_routing();
|
||||
#endif /*!UIP_CONF_IPV6_RPL*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue