X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fnet%2Fhttp.c;h=15b4b13d6b9ceeefc0235a0282aca7aaa18f343d;hb=7c66ae1b30f81fd138f9f4b6ad49ac4d527af642;hp=9098da51dbeb87f4bc5af2c80e112e4dea25972d;hpb=ebdb6199fdf3a09932ea6da7b147ee9e19834078;p=bertos.git diff --git a/bertos/net/http.c b/bertos/net/http.c index 9098da51..15b4b13d 100644 --- a/bertos/net/http.c +++ b/bertos/net/http.c @@ -250,8 +250,8 @@ int http_searchContentType(const char *name) /** - * Send on \param client socket - * the 200 Ok http header + * Send on \param client socket the 200 Ok http header with + * select \param content_type */ void http_sendOk(struct netconn *client, int content_type) { @@ -264,8 +264,8 @@ void http_sendOk(struct netconn *client, int content_type) /** - * Send on \param client socket - * the 404 File not found http header + * Send on \param client socket the 404 File not found http header with + * select \param content_type */ void http_sendFileNotFound(struct netconn *client, int content_type) { @@ -277,8 +277,8 @@ void http_sendFileNotFound(struct netconn *client, int content_type) } /** - * Send on \param client socket - * the 500 internal server error http header + * Send on \param client socket the 500 internal server error http header with + * select \param content_type */ void http_sendInternalErr(struct netconn *client, int content_type) { @@ -304,7 +304,7 @@ static http_handler_t cgi_search(const char *name, HttpCGI *table) if (!strcmp(table[i].name, ext)) { - LOG_INFO("Match all ext %s\n", ext); + LOG_INFO("Match ext: %s\n", ext); break; } } @@ -313,7 +313,7 @@ static http_handler_t cgi_search(const char *name, HttpCGI *table) if (strstr(name, table[i].name) != NULL) { - LOG_INFO("Match all name %s\n", name); + LOG_INFO("Match string: %s\n", name); break; } } @@ -322,7 +322,7 @@ static http_handler_t cgi_search(const char *name, HttpCGI *table) if (!strcmp(table[i].name, name)) { - LOG_INFO("Match all word %s\n", name); + LOG_INFO("Word match: %s\n", name); break; } } @@ -361,7 +361,6 @@ void http_poll(struct netconn *server) memset(req_string, 0, sizeof(req_string)); http_getPageName(rx_buf, len, req_string, sizeof(req_string)); - LOG_INFO("Search %s\n", req_string); if (req_string[0] == '\0') strcpy(req_string, HTTP_DEFAULT_PAGE);