diff options
author | Melody Horn <melody@boringcactus.com> | 2021-12-24 15:34:12 -0700 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-12-24 15:34:12 -0700 |
commit | c6d12d80babd9f4bd5692cf74ab9d6e9278859d1 (patch) | |
tree | 734965c61f70d08614cff1340ba279b6b11ba88c | |
parent | f79b75710167088e2031a82a94a8d127fbb16a1f (diff) | |
download | narchttpd-c6d12d80babd9f4bd5692cf74ab9d6e9278859d1.tar.gz narchttpd-c6d12d80babd9f4bd5692cf74ab9d6e9278859d1.zip |
give up on functions-from-config
i'm not sure why but those appear to not work well
-rw-r--r-- | tests/config-example/main.rs | 1 | ||||
-rw-r--r-- | tests/config-example/narchttpd.rhai | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/tests/config-example/main.rs b/tests/config-example/main.rs index 4b02c58..9f084b7 100644 --- a/tests/config-example/main.rs +++ b/tests/config-example/main.rs @@ -52,5 +52,4 @@ async fn main() { "<p>Hello from sub.domain.test</p>" ); assert!(get("http://dynamic.test").await.contains("hello-there.txt")); - assert_eq!(get("http://function.test").await, "OK"); } diff --git a/tests/config-example/narchttpd.rhai b/tests/config-example/narchttpd.rhai index 7c9185d..713dc3e 100644 --- a/tests/config-example/narchttpd.rhai +++ b/tests/config-example/narchttpd.rhai @@ -14,7 +14,3 @@ domains["dynamic.test"] = proxy_child(#{ in_dir: "./dynamic.test", port: 6970, }); -domains["function.test"] = |request| #{ - status: 200, - body: "OK", -}; |