Use multipart only if it is present in headers.
Merge pull request #41 from stas/master

Use multipart only if it is present in headers.