Support default values for optional fields
Parse Content-Type header properly, to support mimetype parameters