diff --git a/src/httpp/httpp.c b/src/httpp/httpp.c index eb07535a..9bb83f33 100644 --- a/src/httpp/httpp.c +++ b/src/httpp/httpp.c @@ -469,7 +469,7 @@ char *httpp_get_query_param(http_parser_t *parser, char *name) http_var_t *found; var.name = name; - var.value = NULL; + var.value = NULL; if (avl_get_by_key(parser->queryvars, (void *)&var, (void **)&found) == 0) return found->value; diff --git a/src/httpp/httpp.h b/src/httpp/httpp.h index e34f26eb..5e728e32 100644 --- a/src/httpp/httpp.h +++ b/src/httpp/httpp.h @@ -16,7 +16,8 @@ #define HTTPP_VAR_ERROR_CODE "__errorcode" typedef enum httpp_request_type_tag { - httpp_req_none, httpp_req_get, httpp_req_post, httpp_req_head, httpp_req_source, httpp_req_play, httpp_req_stats, httpp_req_unknown + httpp_req_none, httpp_req_get, httpp_req_post, httpp_req_head, + httpp_req_source, httpp_req_play, httpp_req_stats, httpp_req_unknown } httpp_request_type_e; typedef struct http_var_tag { @@ -33,7 +34,7 @@ typedef struct http_parser_tag { httpp_request_type_e req_type; char *uri; avl_tree *vars; - avl_tree *queryvars; + avl_tree *queryvars; } http_parser_t; http_parser_t *httpp_create_parser(void); @@ -48,6 +49,3 @@ void httpp_destroy(http_parser_t *parser); void httpp_clear(http_parser_t *parser); #endif - - -