aboutsummaryrefslogtreecommitdiff
path: root/examples/windmark.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-02 01:57:26 +0000
committerFuwn <[email protected]>2023-04-02 01:57:26 +0000
commit5e6ea230ab98f4a2761876ebe1646c13588e36b1 (patch)
tree1eb43a5723483c4fb13f25951a61a703989ed1b1 /examples/windmark.rs
parentfeat(respones): accept generic bytes for binary_success (diff)
downloadwindmark-5e6ea230ab98f4a2761876ebe1646c13588e36b1.tar.xz
windmark-5e6ea230ab98f4a2761876ebe1646c13588e36b1.zip
feat(response): add 'auto' functionality to binary_success raw
Diffstat (limited to 'examples/windmark.rs')
-rw-r--r--examples/windmark.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/windmark.rs b/examples/windmark.rs
index 4b2b1fc..50914f4 100644
--- a/examples/windmark.rs
+++ b/examples/windmark.rs
@@ -181,7 +181,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
);
#[cfg(feature = "auto-deduce-mime")]
router.mount("/auto-file", {
- windmark::binary_success_auto!(include_bytes!("../LICENSE"))
+ windmark::binary_success!(include_bytes!("../LICENSE"))
});
router.mount("/file", {
windmark::binary_success!(include_bytes!("../LICENSE"), "text/plain")