Skip to content

Commit ac96581

Browse files
committed
Fix ATS does not honor proxy.config.body_factory.response_max_size
1 parent 04bfb45 commit ac96581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

proxy/http/HttpTransact.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7979,7 +7979,7 @@ HttpTransact::build_error_response(State *s, HTTPStatus status_code, const char
79797979
int64_t len;
79807980
char *new_msg;
79817981

7982-
new_msg = body_factory->fabricate_with_old_api(error_body_type, s, 8192, &len, body_language, sizeof(body_language), body_type,
7982+
new_msg = body_factory->fabricate_with_old_api(error_body_type, s, s->http_config_param->body_factory_response_max_size, &len, body_language, sizeof(body_language), body_type,
79837983
sizeof(body_type), s->internal_msg_buffer_size,
79847984
s->internal_msg_buffer_size ? s->internal_msg_buffer : nullptr);
79857985

0 commit comments

Comments
 (0)