diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-07 13:25:49 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-07 13:25:49 +0100 |
commit | ee9def66ca6120fdaa9acc623b8c8e49b1b2ea93 (patch) | |
tree | 352737c37db34f0ff436808c1fb301b3cc5e4d5c /src/libutil | |
parent | 2a522e2a42bcb814e20b41206923f56e66b54c47 (diff) | |
download | rspamd-ee9def66ca6120fdaa9acc623b8c8e49b1b2ea93.tar.gz rspamd-ee9def66ca6120fdaa9acc623b8c8e49b1b2ea93.zip |
Fix lua_http.
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c index cba82ba41..28faf13c4 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -111,7 +111,7 @@ write_http_request (struct http_callback_data *cbd) msg = rspamd_http_new_message (HTTP_REQUEST); - msg->url = g_string_new (cbd->data->path); + msg->url = rspamd_fstring_new_init (cbd->data->path, strlen (cbd->data->path)); if (cbd->data->last_checked != 0) { tm = gmtime (&cbd->data->last_checked); strftime (datebuf, sizeof (datebuf), "%a, %d %b %Y %H:%M:%S %Z", tm); |