jacksonh / manos

Manos is an easy to use, easy to test, high performance web application framework that stays out of your way and makes your life ridiculously simple.
Other
454 stars 61 forks source link

Problem with uploading file using multipart/form-data #105

Closed konrad-kruczynski closed 13 years ago

konrad-kruczynski commented 13 years ago

Using tag 0.1.3 I had no problem with uploading file, it could be accessed through Request.Files. With current tip same code gives me

System.ArgumentOutOfRangeException: Argument is out of range.
Parameter name: startIndex
  at System.String.Substring (Int32 startIndex) [0x00000] in <filename unknown>:0 
  at Manos.Http.HttpMultiPartFormDataHandler.ParseContentType (System.String str) [0x00000] in <filename unknown>:0 
  at Manos.Http.HttpMultiPartFormDataHandler.HandleHeader (Manos.Http.HttpEntity entity) [0x00000] in <filename unknown>:0 
  at Manos.Http.HttpMultiPartFormDataHandler.HandleData (Manos.Http.HttpEntity entity, Manos.IO.ByteBuffer data, Int32 pos, Int32 len) [0x00000] in <filename unknown>:0 
konrad-kruczynski commented 13 years ago

It was caused by https://github.com/jacksonh/manos/pull/108

txdv commented 13 years ago

Caused by your own commit ;P

konrad-kruczynski commented 13 years ago

Actually, no, given commit is solution to this problem. It was a shortcut to "it was caused by problem described in the link" ;)