diff options
author | John Högberg <john@erlang.org> | 2021-02-04 11:38:26 +0100 |
---|---|---|
committer | John Högberg <john@erlang.org> | 2021-02-05 09:37:44 +0100 |
commit | 6d3e20f940efa8383cee7123ac6bfdcf92e0aa15 (patch) | |
tree | 82befe82b6905b3a18b687eae7db452c273073ca /lib/inets/src/http_lib | |
parent | 961f7e96afb4d330735d0455e5fd43cd3730ea11 (diff) | |
download | erlang-6d3e20f940efa8383cee7123ac6bfdcf92e0aa15.tar.gz |
inets: Fix an upcoming warning that would break the build
Diffstat (limited to 'lib/inets/src/http_lib')
-rw-r--r-- | lib/inets/src/http_lib/http_util.erl | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/lib/inets/src/http_lib/http_util.erl b/lib/inets/src/http_lib/http_util.erl index 5577b00cc8..b380068af9 100644 --- a/lib/inets/src/http_lib/http_util.erl +++ b/lib/inets/src/http_lib/http_util.erl @@ -123,12 +123,12 @@ convert_netscapecookie_date([_D,_A,_Y, $ , {{Year,Month,Day},{Hour,Min,Sec}}; %% Sloppy... -convert_netscapecookie_date([_D,_A,_Y, $,, _SP, - D1,D2,_DA, - M,O,N,_DA, - Y1,Y2,Y3,Y4,_SP, - H1,H2,_Col, - M1,M2,_Col, +convert_netscapecookie_date([_D,_A,_Y, $,, SP, + D1,D2,DA, + M,O,N,DA, + Y1,Y2,Y3,Y4,SP, + H1,H2,Col, + M1,M2,Col, S1,S2|_Rest]) -> Year=list_to_integer([Y1,Y2,Y3,Y4]), Day=list_to_integer([D1,D2]), @@ -138,12 +138,12 @@ convert_netscapecookie_date([_D,_A,_Y, $,, _SP, Sec=list_to_integer([S1,S2]), {{Year,Month,Day},{Hour,Min,Sec}}; -convert_netscapecookie_date([_D,_A,_Y, _SP, - D1,D2,_DA, - M,O,N,_DA, - Y1,Y2,Y3,Y4,_SP, - H1,H2,_Col, - M1,M2,_Col, +convert_netscapecookie_date([_D,_A,_Y, SP, + D1,D2,DA, + M,O,N,DA, + Y1,Y2,Y3,Y4,SP, + H1,H2,Col, + M1,M2,Col, S1,S2|_Rest]) -> Year=list_to_integer([Y1,Y2,Y3,Y4]), Day=list_to_integer([D1,D2]), |