Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1029 from spray/w/998-make-multiparts-marshaller-…
Browse files Browse the repository at this point in the history
…public

= httpx make MultipartsMarshallers.multipartPartsMarshaller public, fixes #998
  • Loading branch information
sirthias committed Mar 23, 2015
2 parents f9eca38 + 996995b commit 9c9dc9e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -39,7 +39,7 @@ trait MultipartMarshallers {
implicit def multipartByterangesMarshaller = multipartPartsMarshaller[MultipartByteRanges](`multipart/byteranges`)
implicit def multipartContentMarshaller = multipartPartsMarshaller[MultipartContent](`multipart/mixed`)

private def multipartPartsMarshaller[T <: MultipartParts](mediatype: MultipartMediaType): Marshaller[T] = {
def multipartPartsMarshaller[T <: MultipartParts](mediatype: MultipartMediaType): Marshaller[T] = {
val boundary = randomBoundary
Marshaller.of[T](mediatype withBoundary boundary) { (value, contentType, ctx)
if (!value.parts.isEmpty) {
Expand Down

0 comments on commit 9c9dc9e

Please sign in to comment.