Permalink
Browse files

Permit stream to nothing (async without callback)

  • Loading branch information...
1 parent d8b4c2c commit dcb34486a43db8ba5371671b5f01f930036e66a0 @lpgauth committed Jul 22, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/lhttpc.erl
View
@@ -557,6 +557,8 @@ verify_options([{max_connections, MS} | Options], Errors)
verify_options([{stream_to, Pid} | Options], Errors)
when is_pid(Pid) ->
verify_options(Options, Errors);
+verify_options([{stream_to, undefined} | Options], Errors) ->
+ verify_options(Options, Errors);
verify_options([{partial_upload, WindowSize} | Options], Errors)
when is_integer(WindowSize), WindowSize >= 0 ->
verify_options(Options, Errors);

0 comments on commit dcb3448

Please sign in to comment.