Test hook 2
This commit is contained in:
parent
684f90a197
commit
f619f7dda8
|
@ -109,7 +109,7 @@ rust_cgi::cgi_main!(|req: cgi::http::Request<Vec<u8>>| -> rust_cgi::Response {
|
||||||
let image = req.into_body();
|
let image = req.into_body();
|
||||||
let gif = match futures::executor::block_on(make_gif(&image, qd)) {
|
let gif = match futures::executor::block_on(make_gif(&image, qd)) {
|
||||||
Ok(gif) => gif,
|
Ok(gif) => gif,
|
||||||
Err(_) => return cgi::text_response(500, "Failed to process image!"),
|
Err(_) => return cgi::text_response(500, "Failed to process image"),
|
||||||
};
|
};
|
||||||
rust_cgi::binary_response(200, CONTENT_TYPE, gif)
|
rust_cgi::binary_response(200, CONTENT_TYPE, gif)
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue