"boundary" missed in multipart response

252 views
Skip to first unread message

François Vatel

unread,
Jul 12, 2017, 11:38:12 AM7/12/17
to spray.io User List
Hello!

I know spray is being replaced by akka-http but we are still using it in some old projects (difficult to migrate).

We have a code like this to marshal OurMessage case class to multipart http *response* :

implicit val multipartMessageWriter =
 
Marshaller.delegate[OurMessage, MultipartFormData](MediaTypes.`multipart/form-data`) { message =>
   
MultipartFormData(<body parts here>)
 
}


The response is almost good, but there is no "boundary" parameter in "Content-type" header:

HTTP/1.1 200 OK
Server: spray-can/1.3.2
Date: Wed, 12 Jul 2017 15:21:57 GMT
Content-Type: multipart/form-data; charset=UTF-8
Content-Length: 2173857

--ic2MGMLm2bK1SIkiEKKlyB25
...

Is this a bug or I missunderstand something?
Thanks!

François Vatel

unread,
Jul 12, 2017, 11:41:56 AM7/12/17
to spray.io User List
sorry, forgot to say we use spray 1.3.2 with scala 2.11.6 and akka 2.3.9
Reply all
Reply to author
Forward
0 new messages