Skip to content

Commit

Permalink
Fix compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mmzeeman authored and knutin committed Dec 13, 2013
1 parent fdfee2e commit 556a7a8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/elli_tcp.erl
Expand Up @@ -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).



0 comments on commit 556a7a8

Please sign in to comment.