]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-http: Explicitly define the start of the range of internal response status codes.
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sun, 19 Mar 2017 14:06:13 +0000 (15:06 +0100)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 27 Mar 2017 09:42:16 +0000 (12:42 +0300)
src/lib-http/http-client.h
src/lib-http/http-response.h

index 1f2dc61fa0a413644a181a76f33b67eb9259bbc9..99860cbbb6fce121c9079ce8341031d5dbad91a3 100644 (file)
@@ -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
index dde386efe4fbf148143b40658ad2b0229db24fc6..ff689d8ddc8c88a512912de9de0dc8153148928d 100644 (file)
@@ -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,