From 83aa3f1b9c7aeafaed2b798f75bea929e5090ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 10 Aug 2016 17:50:28 +0200 Subject: Use binary_to_integer instead of to list and back --- test/http_SUITE_data/http_multipart_stream.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/http_SUITE_data') diff --git a/test/http_SUITE_data/http_multipart_stream.erl b/test/http_SUITE_data/http_multipart_stream.erl index b739740..88cf611 100644 --- a/test/http_SUITE_data/http_multipart_stream.erl +++ b/test/http_SUITE_data/http_multipart_stream.erl @@ -11,7 +11,7 @@ init(Req, Opts) -> multipart(Req) -> case cowboy_req:read_part(Req) of {ok, [{<<"content-length">>, BinLength}], Req2} -> - Length = list_to_integer(binary_to_list(BinLength)), + Length = binary_to_integer(BinLength), {Length, Req3} = stream_body(Req2, 0), multipart(Req3); {done, Req2} -> -- cgit v1.2.3