]> granicus.if.org Git - ejabberd/commitdiff
Fixed ejabberd_http:get_line
authorAlexey Shchepin <alexey@process-one.net>
Thu, 19 Jan 2012 10:20:02 +0000 (12:20 +0200)
committerAlexey Shchepin <alexey@process-one.net>
Thu, 19 Jan 2012 10:20:48 +0000 (12:20 +0200)
src/web/ejabberd_http.erl

index 44d3e161f0af184f1dff6eb32c50aaaa6f2ab77d..abfe40705a97689ac5abfdee766640c7539ba162 100644 (file)
@@ -1132,4 +1132,6 @@ get_line("\r\n" ++ Tail, Cur) ->
            end
     end;
 get_line([H|T], Cur) ->
-    get_line(T, [H|Cur]).
+    get_line(T, [H|Cur]);
+get_line([], Cur) ->
+    {incomplete, lists:reverse(Cur)}.