bbcarchdev / twine

An RDF workflow engine
https://bbcarchdev.github.io/twine/
Apache License 2.0
8 stars 3 forks source link

Handle MIME types consistently #27

Open nevali opened 8 years ago

nevali commented 8 years ago

When looking for an input handler, libtwine will look for a semicolon in a supplied MIME type and ignore any supplied parameters (e.g., ; charset=utf-8), but does not apply this logic in other places. There should be a single utility function which obtains the relevant length of a supplied MIME type for comparison purposes which is used throughout.