]> granicus.if.org Git - curl/commit
formdata: use the mime-content type function
authorDaniel Stenberg <daniel@haxx.se>
Sun, 4 Feb 2018 08:23:11 +0000 (09:23 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 5 Feb 2018 12:50:30 +0000 (13:50 +0100)
commit84ad1fd3047815f9c6e78728bb351b828eac10b1
tree31e2d053c836cf6bde3ae02a248e325a4c433bdf
parenta19afaccfeb5a77c15fdfc1c2be16fb27828cefc
formdata: use the mime-content type function

Reduce code duplication by making Curl_mime_contenttype available and
used by the formdata function. This also makes the formdata function
recognize a set of more file extensions by default.

PR #2280 brought this to my attention.

Closes #2282
lib/formdata.c
lib/mime.c
lib/mime.h