]> 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)
committerGitLab <gitlab@git.dovecot.net>
Wed, 22 Mar 2017 18:41:09 +0000 (20:41 +0200)
src/lib-http/http-client.h
src/lib-http/http-response.h

index d977f76485a0a34028281f4a3c4e4c46300914f7..19428805755270e8a4334a568ec8be9765bfbe55 100644 (file)
@@ -129,7 +129,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 caf8374144f4080de19de6a06cd370ee76201c8b..7c5efb1fdf1e739b4667adad8cf8e60aca3db945 100644 (file)
@@ -5,6 +5,8 @@
 
 #include "http-header.h"
 
+#define HTTP_RESPONSE_STATUS_INTERNAL 9000
+
 enum http_response_payload_type {
        HTTP_RESPONSE_PAYLOAD_TYPE_ALLOWED,
        HTTP_RESPONSE_PAYLOAD_TYPE_NOT_PRESENT,