aboutsummaryrefslogtreecommitdiffstats
path: root/lib/inets/test/httpd_1_1.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2017-03-03 11:46:19 +0100
committerGitHub <[email protected]>2017-03-03 11:46:19 +0100
commit6df4e8aaf35488defd19c468395f4a5ae9714ada (patch)
treec9c1ac2c4a3ccc6f6a0c987a9f0f4cf9437b8df4 /lib/inets/test/httpd_1_1.erl
parent79422f489a619df0bb6fcd32ce494fb9cefdaa12 (diff)
parenteb437db9e7df90d5e72d6314ee7c49cbde77135a (diff)
downloadotp-6df4e8aaf35488defd19c468395f4a5ae9714ada.tar.gz
otp-6df4e8aaf35488defd19c468395f4a5ae9714ada.tar.bz2
otp-6df4e8aaf35488defd19c468395f4a5ae9714ada.zip
Merge pull request #1359 from myronmarston/fix-length-typo
Fix typos: lenght -> length
Diffstat (limited to 'lib/inets/test/httpd_1_1.erl')
-rw-r--r--lib/inets/test/httpd_1_1.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/inets/test/httpd_1_1.erl b/lib/inets/test/httpd_1_1.erl
index 3755ed117b..2b5968ca12 100644
--- a/lib/inets/test/httpd_1_1.erl
+++ b/lib/inets/test/httpd_1_1.erl
@@ -405,11 +405,11 @@ getRangeSize(Head)->
{multiPart, BoundaryString};
_X1 ->
case re:run(Head, ?CONTENT_RANGE "bytes=.*\r\n", [{capture, first}]) of
- {match, [{Start, Lenght}]} ->
+ {match, [{Start, Length}]} ->
%% Get the range data remove the fieldname and the
%% end of line.
RangeInfo = string:substr(Head, Start + 1 + 20,
- Lenght - (20 +2)),
+ Length - (20 +2)),
rangeSize(string:strip(RangeInfo));
_X2 ->
error