From 556a7a820fe268b72dc1077b0ea03df6fd4c6240 Mon Sep 17 00:00:00 2001 From: Maas-Maarten Zeeman Date: Thu, 31 Oct 2013 23:23:03 +0100 Subject: [PATCH] Fix compile warning --- src/elli_tcp.erl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/elli_tcp.erl b/src/elli_tcp.erl index e32281c..4237210 100644 --- a/src/elli_tcp.erl +++ b/src/elli_tcp.erl @@ -66,9 +66,7 @@ setopts({ssl, Socket}, Opts) -> sendfile(Fd, {plain, Socket}, Offset, Length, Opts) -> - file:sendfile(Fd, Socket, Offset, Length, []); -sendfile(_Fd, {ssl, Socket}, _Offset, _Length, _Opts) -> + file:sendfile(Fd, Socket, Offset, Length, Opts); +sendfile(_Fd, {ssl, _}, _Offset, _Length, _Opts) -> throw(ssl_sendfile_not_supported). - -