socketry / multipart-post

Adds multipart POST capability to net/http
MIT License
293 stars 72 forks source link

Allow UploadIO to accept additional MIME headers as options #45

Closed dmolesUC closed 1 year ago

dmolesUC commented 8 years ago

The UploadIO initializer accepts a list of options and uses them to construct MIME headers, but it only pulls out headers it knows about. It would be nice to be able to include arbitrary headers.

For an example use case, see the Packaging and Content-MD5 headers in the SWORD 2.0 spec, e.g.

Content-Type: application/zip
Content-Disposition: attachment; name=payload; filename=[filename]
Packaging: http://purl.org/net/sword/package/SimpleZip
Content-MD5: [md5-digest]
MIME-Version: 1.0

...binary package data...
ioquatix commented 7 years ago

I think this is a good idea.

ioquatix commented 1 year ago

Are we good to close this issue?

dmolesUC commented 1 year ago

@ioquatix Yep, thanks! (Sorry, should have thought to do it after the PR was merged.)

ioquatix commented 1 year ago

Thanks!