aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/libserver/protocol.c2
-rw-r--r--src/libutil/http.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index ff28ba5f5..6b76a401f 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -276,6 +276,8 @@ rspamd_protocol_handle_url (struct rspamd_task *task,
task->msg.len = res->len;
}
+ task->flags |= RSPAMD_TASK_FLAG_FILE;
+
g_hash_table_unref (query_args);
}
diff --git a/src/libutil/http.c b/src/libutil/http.c
index 73954474c..d15633f8e 100644
--- a/src/libutil/http.c
+++ b/src/libutil/http.c
@@ -2393,7 +2393,7 @@ rspamd_http_message_parse_query (struct rspamd_http_message *msg)
g_assert (key != NULL);
if (p > c) {
value = g_string_sized_new (p - c);
- g_string_append_len (key, c, p - c);
+ g_string_append_len (value, c, p - c);
value->len = rspamd_decode_url (value->str, value->str,
value->len);
}