safiresh / chrome-rest-client

Automatically exported from code.google.com/p/chrome-rest-client
0 stars 0 forks source link

multipart/form-data without file not working #237

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
multipart/form-data POST Request with Key/Value pairs and at least one file 
work fine.
If no file is added to the post the Request is broken.

In C# WebApi An Exception is coming up with the message: The Datastream ended 
unexpected, Mime Message is not complete.

German Exception: 
"Unerwartetes Ende des mehrteiligen MIME-Datenstroms. Die mehrteilige 
MIME-Nachricht ist unvollständig."
StackTrace:
   bei System.Net.Http.Formatting.Parsers.MimeMultipartBodyPartParser.<ParseBuffer>d__0.MoveNext()
   bei System.Net.Http.HttpContentMultipartExtensions.<MultipartReadAsync>d__8.MoveNext()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme 
ausgelöst wurde ---
   bei System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   bei System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   bei System.Runtime.CompilerServices.TaskAwaiter.GetResult()
   bei System.Net.Http.HttpContentMultipartExtensions.<ReadAsMultipartAsync>d__0`1.MoveNext()
^

Multipart posts from other sources are fine. 

OS: Win 8.1 Pro
Browser: Google Chrome 
Version: 33.0.1750.117 m

Original issue reported on code.google.com by wer.jo...@gmail.com on 26 Feb 2014 at 3:12