summaryrefslogtreecommitdiff
path: root/lib/inets/src/http_lib
diff options
context:
space:
mode:
authorKian-Meng, Ang <kianmeng@cpan.org>2021-12-17 09:56:35 +0800
committerKian-Meng, Ang <kianmeng@cpan.org>2021-12-23 13:41:08 +0800
commit45e4418577d1b6569b1f81c9c0085aa6976458c1 (patch)
treea637ed1e0fc0f11ebaf4a0abc4dc68cf5e22c74b /lib/inets/src/http_lib
parent014d40f14d3e9d9aece01e8e30f3b1e87bbbb7bf (diff)
downloaderlang-45e4418577d1b6569b1f81c9c0085aa6976458c1.tar.gz
Fix typos in lib/inets
Diffstat (limited to 'lib/inets/src/http_lib')
-rw-r--r--lib/inets/src/http_lib/http_chunk.erl4
-rw-r--r--lib/inets/src/http_lib/http_transport.erl6
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/inets/src/http_lib/http_chunk.erl b/lib/inets/src/http_lib/http_chunk.erl
index 742d634577..2634b82f33 100644
--- a/lib/inets/src/http_lib/http_chunk.erl
+++ b/lib/inets/src/http_lib/http_chunk.erl
@@ -44,7 +44,7 @@
%% MaxHeaderSize = integer()
%%
%% Description: Decodes a body encoded by the chunked transfer
-%% encoding. If the ChunkedBody is not compleate it returns {Module,
+%% encoding. If the ChunkedBody is not complete it returns {Module,
%% Function, Args} so that decoding can be continued when more of the
%% data has been received by calling Module:Function([NewData | Args]).
%%
@@ -124,7 +124,7 @@ handle_headers(ResponseHeaderRecord = #http_response_h{}, ChunkedHeaders) ->
NewHeaders#http_response_h{'transfer-encoding' = TransferEncoding}.
%% Functions that may be returned during the decoding process
-%% if the input data is incompleate.
+%% if the input data is incomplete.
decode_size([Bin, Rest, HexList, AccSize, Info]) ->
decode_size(<<Rest/binary, Bin/binary>>, HexList, AccSize, Info).
diff --git a/lib/inets/src/http_lib/http_transport.erl b/lib/inets/src/http_lib/http_transport.erl
index 0b50b48ecc..c18c08c77c 100644
--- a/lib/inets/src/http_lib/http_transport.erl
+++ b/lib/inets/src/http_lib/http_transport.erl
@@ -126,7 +126,7 @@ connect({essl, SslConfig}, {Host, Port}, Opts0, Timeout) ->
%%
%% Description: Sets up socket to listen on the port Port on the local
%% host using either gen_tcp or ssl. In the gen_tcp case the port
-%% might allready have been initiated by a wrapper-program and is
+%% might already have been initiated by a wrapper-program and is
%% given as an Fd that can be retrieved by init:get_argument. The
%% reason for this to enable a HTTP-server not running as root to use
%% port 80.
@@ -361,7 +361,7 @@ close({essl, _}, Socket) ->
%% peername(SocketType, Socket) -> {Port, SockName}
%% SocketType = ip_comm | {ssl, _}
%% Socket = socket()
-%% Port = integer() (-1 if error occured)
+%% Port = integer() (-1 if error occurred)
%% PeerName = string()
%%
%% Description: Returns the address and port for the other end of a
@@ -395,7 +395,7 @@ do_peername({error, _}) ->
%% sockname(SocketType, Socket) -> {Port, SockName}
%% SocketType = ip_comm | {ssl, _}
%% Socket = socket()
-%% Port = integer() (-1 if error occured)
+%% Port = integer() (-1 if error occurred)
%% SockName = string()
%%
%% Description: Returns the address and port for the local (our) end