diff options
author | Erlang/OTP <otp@erlang.org> | 2023-02-16 15:15:17 +0100 |
---|---|---|
committer | Erlang/OTP <otp@erlang.org> | 2023-02-16 15:15:17 +0100 |
commit | b2f4219c16d7e12f1361b9a3cf2134018a375381 (patch) | |
tree | 4b09fdb4845cdbd1a7be71d822af2654dcff0523 /lib | |
parent | b4f24580515862c8f869dbcbca09a097d5bd932f (diff) | |
parent | cfe4fef1d256512908b25e87ff623546b348ea55 (diff) | |
download | erlang-b2f4219c16d7e12f1361b9a3cf2134018a375381.tar.gz |
Merge branch 'ingela/inets/header-default/OTP-18461' into maint-25
* ingela/inets/header-default/OTP-18461:
inets: Make sure headers can not be undefined
Diffstat (limited to 'lib')
-rw-r--r-- | lib/inets/src/http_server/httpd_request_handler.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inets/src/http_server/httpd_request_handler.erl b/lib/inets/src/http_server/httpd_request_handler.erl index 9163225035..259df730e5 100644 --- a/lib/inets/src/http_server/httpd_request_handler.erl +++ b/lib/inets/src/http_server/httpd_request_handler.erl @@ -33,7 +33,7 @@ terminate/2, code_change/3, format_status/2]). -include("httpd.hrl"). --include("http_internal.hrl"). +-include("../http_lib/http_internal.hrl"). -include_lib("kernel/include/logger.hrl"). -define(HANDSHAKE_TIMEOUT, 5000). @@ -46,7 +46,7 @@ response_sent = false :: boolean(), timeout, %% infinity | integer() > 0 timer :: 'undefined' | reference(), % Request timer - headers, %% #http_request_h{} + headers = #http_request_h{}, body, %% binary() data, %% The total data received in bits, checked after 10s byte_limit, %% Bit limit per second before kick out |