Closed toastx closed 1 week ago
Expanded Body of parser/src/schema/body.rs for body.zip, body.gzip, body.gif as per #63
#[serde(alias = "gzip", alias = "gz")] Gzip(String), #[serde(alias = "zip")] Zip(String), #[serde(alias = "gif")] Gif(String),
and added custom mime types
Body::Gzip(path) => SchemaBody::Binary { path, mime: Mime::from_str("application/gzip").unwrap() }, Body::Zip(path) => SchemaBody::Binary { path, mime: Mime::from_str("application/zip").unwrap() }, Body::Gif(path) => SchemaBody::Binary { path, mime: mime::IMAGE_GIF, },
Awesome work again, @toastx
I'm merging this. Thank you for your time.
Expanded Body of parser/src/schema/body.rs for body.zip, body.gzip, body.gif as per #63
and added custom mime types