Permalink
Browse files

Ignore empty input.

  • Loading branch information...
1 parent a83a6a8 commit 15d95812d67eb1910a74fb662a8062ec2b9135a9 @FooBarWidget committed Jun 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 multipart.cpp
View
@@ -154,7 +154,7 @@ class MultipartParser {
}
size_t feed(const char *buffer, size_t len) {
- if (state == ERROR) {
+ if (state == ERROR || len == 0) {
return 0;
}

0 comments on commit 15d9581

Please sign in to comment.