Adjust --mime-type to allow ':' in extension
commit67aaaa6507b65787341973efc7db880812afcbc4
authorOlly Betts <olly@survex.com>
Thu, 6 Sep 2018 04:49:23 +0000 (6 16:49 +1200)
committerOlly Betts <olly@survex.com>
Thu, 6 Sep 2018 04:49:23 +0000 (6 16:49 +1200)
tree4f7227da4796d498a1119cbaa73c1d4d48f35250
parent981bd138e44e63fabddaf187d85d542030b864df
Adjust --mime-type to allow ':' in extension

A valid MIME Content-Type can't contain a colon, so if the argument
to --mime-type contains more than one colon it makes more sense
to split at the *last* colon (we used to split at the first), as
an extension could conceivably contain a colon.

Mostly this change is for consistency with the new --mime-type-match
option, where the leafname pattern could reasonably contain a colon.
xapian-applications/omega/omindex.cc