From 83b3bddc1ac0ee2cbb8d3cb04dfed540324ed20a Mon Sep 17 00:00:00 2001 From: sigod Date: Thu, 13 Aug 2015 20:03:33 +0300 Subject: [PATCH] multipart request: always skip boundary, fix #1220 --- source/vibe/inet/webform.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/vibe/inet/webform.d b/source/vibe/inet/webform.d index 268f505eaa..7a3afde38a 100644 --- a/source/vibe/inet/webform.d +++ b/source/vibe/inet/webform.d @@ -216,7 +216,7 @@ private bool parseMultipartFormPart(InputStream stream, ref FormFields form, ref import std.conv : to; file.write(stream, (*plen).to!long); } - else stream.readUntil(file, cast(ubyte[])boundary); + stream.readUntil(file, cast(ubyte[])boundary); logDebug("file: %s", fp.tempPath.toString()); file.close();