From: Stephan Bosch Date: Sun, 19 Mar 2017 14:06:13 +0000 (+0100) Subject: lib-http: Explicitly define the start of the range of internal response status codes. X-Git-Tag: 2.2.29.rc1~122 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6d2025b8039a12c09cdc3fd517e84b9cb54d3b9;p=thirdparty%2Fdovecot%2Fcore.git lib-http: Explicitly define the start of the range of internal response status codes. --- diff --git a/src/lib-http/http-client.h b/src/lib-http/http-client.h index 1f2dc61fa0..99860cbbb6 100644 --- a/src/lib-http/http-client.h +++ b/src/lib-http/http-client.h @@ -132,7 +132,7 @@ struct http_client_settings { 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 diff --git a/src/lib-http/http-response.h b/src/lib-http/http-response.h index dde386efe4..ff689d8ddc 100644 --- a/src/lib-http/http-response.h +++ b/src/lib-http/http-response.h @@ -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,