diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-01-08 17:32:24 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-01-08 17:32:24 +0000 |
commit | 4e4ae88f0e2093f0a354e396169694d40eb08d6d (patch) | |
tree | c0f62f49a1843c88bac671c713dc3fe2c2eb0409 /src/lua/lua_http.c | |
parent | 0894d44904c188cc1e62abe147267e593fdb369c (diff) | |
download | rspamd-4e4ae88f0e2093f0a354e396169694d40eb08d6d.tar.gz rspamd-4e4ae88f0e2093f0a354e396169694d40eb08d6d.zip |
Implement http server using http_parser.
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r-- | src/lua/lua_http.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index f83c5f6f4..26f699b78 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -24,6 +24,7 @@ #include "lua_common.h" #include "buffer.h" #include "dns.h" +#include "http.h" #define MAX_HEADERS_SIZE 8192 @@ -229,7 +230,7 @@ lua_http_parse_header_line (struct lua_http_ud *ud, f_str_t *in) /* Check date */ if (g_ascii_strcasecmp (new->name, "date") == 0) { - ud->date = parse_http_date (new->value, -1); + ud->date = rspamd_http_parse_date (new->value, -1); } /* Insert a header to the list */ |