BUG/MINOR: http-htx: defpx must be a const in proxy_dup_default_conf_errors()

This is just an API bug but it's annoying when trying to tidy the code.
The default proxy passed in argument must be a const and not a variable.
No backport is needed as it only impacts new code.
diff --git a/include/haproxy/http_htx.h b/include/haproxy/http_htx.h
index 70df680..fbd4438 100644
--- a/include/haproxy/http_htx.h
+++ b/include/haproxy/http_htx.h
@@ -70,7 +70,7 @@
 struct buffer *http_load_errormsg(const char *key, const struct ist msg, char **errmsg);
 struct buffer *http_parse_errorfile(int status, const char *file, char **errmsg);
 struct buffer *http_parse_errorloc(int errloc, int status, const char *url, char **errmsg);
-int proxy_dup_default_conf_errors(struct proxy *curpx, struct proxy *defpx, char **errmsg);
+int proxy_dup_default_conf_errors(struct proxy *curpx, const struct proxy *defpx, char **errmsg);
 void proxy_release_conf_errors(struct proxy *px);
 
 #endif /* _HAPROXY_HTTP_HTX_H */
diff --git a/src/http_htx.c b/src/http_htx.c
index bb3d8d0..e2e6ce1 100644
--- a/src/http_htx.c
+++ b/src/http_htx.c
@@ -2080,7 +2080,7 @@
 	return err_code;
 }
 
-int proxy_dup_default_conf_errors(struct proxy *curpx, struct proxy *defpx, char **errmsg)
+int proxy_dup_default_conf_errors(struct proxy *curpx, const struct proxy *defpx, char **errmsg)
 {
 	struct conf_errors *conf_err, *new_conf_err = NULL;
 	int ret = 0;