Prefixed method consts to prevent clashes

pull/30/head
Jeroen Domburg 10 years ago
parent 4c47af2c68
commit cebc0aa65f
  1. 4
      user/httpd.c
  2. 8
      user/httpd.h

@ -310,10 +310,10 @@ static void ICACHE_FLASH_ATTR httpdParseHeader(char *h, HttpdConnData *conn) {
// os_printf("Got header %s\n", h);
if (os_strncmp(h, "GET ", 4)==0){
conn->requestType = GET;
conn->requestType = HTTPD_METHOD_GET;
first_line = true;
}else if(os_strncmp(h, "POST ", 5)==0) {
conn->requestType = POST;
conn->requestType = HTTPD_METHOD_POST;
first_line = true;
}

@ -4,15 +4,15 @@
#include <ip_addr.h>
#include <espconn.h>
#define HTTPDVER "0.2"
#define HTTPDVER "0.3"
#define HTTPD_CGI_MORE 0
#define HTTPD_CGI_DONE 1
#define HTTPD_CGI_NOTFOUND 2
#define HTTPD_CGI_AUTHENTICATED 3 //for now
#define HTTPD_CGI_AUTHENTICATED 3
#define GET 1
#define POST 2
#define HTTPD_METHOD_GET 1
#define HTTPD_METHOD_POST 2
typedef struct HttpdPriv HttpdPriv;
typedef struct HttpdConnData HttpdConnData;

Loading…
Cancel
Save