Mercurial > dovecot > core-2.2
changeset 21786:d5b80aa17fce
lib-http: Explicitly define the start of the range of internal response status codes.
author | Stephan Bosch <stephan.bosch@dovecot.fi> |
---|---|
date | Sun, 19 Mar 2017 15:06:13 +0100 |
parents | 22764c03b37c |
children | f9bed7bc73e0 |
files | src/lib-http/http-client.h src/lib-http/http-response.h |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-http/http-client.h Fri Mar 17 23:03:03 2017 +0100 +++ b/src/lib-http/http-client.h Sun Mar 19 15:06:13 2017 +0100 @@ -132,7 +132,7 @@ enum http_client_request_error { /* The request was aborted */ - HTTP_CLIENT_REQUEST_ERROR_ABORTED = 9000, + HTTP_CLIENT_REQUEST_ERROR_ABORTED = HTTP_RESPONSE_STATUS_INTERNAL, /* Failed to perform DNS lookup for the host */ HTTP_CLIENT_REQUEST_ERROR_HOST_LOOKUP_FAILED, /* Failed to setup any connection for the host and client settings allowed
--- a/src/lib-http/http-response.h Fri Mar 17 23:03:03 2017 +0100 +++ b/src/lib-http/http-response.h Sun Mar 19 15:06:13 2017 +0100 @@ -6,6 +6,7 @@ #include "http-header.h" #define http_response_header http_header_field /* FIXME: remove in v2.3 */ +#define HTTP_RESPONSE_STATUS_INTERNAL 9000 enum http_response_payload_type { HTTP_RESPONSE_PAYLOAD_TYPE_ALLOWED,