diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-30 15:35:09 -0700 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-04-30 15:35:09 -0700 |
commit | 2b99cf9650d90ef852a01b082578a74d1c20065f (patch) | |
tree | d967380733628ffb0c93b8165880a241fbac8cd0 /src/client | |
parent | 4d0870aee42ede6ecced8ddbbb6ab3626db3d96f (diff) | |
download | rspamd-2b99cf9650d90ef852a01b082578a74d1c20065f.tar.gz rspamd-2b99cf9650d90ef852a01b082578a74d1c20065f.zip |
Use status line in client.
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/rspamdclient.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/rspamdclient.c b/src/client/rspamdclient.c index 59dc77b76..55f1a6e37 100644 --- a/src/client/rspamdclient.c +++ b/src/client/rspamdclient.c @@ -98,7 +98,8 @@ rspamd_client_finish_handler (struct rspamd_http_connection *conn, } else { if (msg->body == NULL || msg->body->len == 0 || msg->code != 200) { - err = g_error_new (RCLIENT_ERROR, msg->code, "HTTP error occurred: %d", msg->code); + err = g_error_new (RCLIENT_ERROR, msg->code, "HTTP error: %d, %s", + msg->code, msg->status ? msg->status->str : "unknown error"); req->cb (c, msg, c->server_name->str, NULL, req->ud, err); g_error_free (err); return -1; |