From 9d50c5c1a6fbe6895b6a63dadcba7bacaf9dd578 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Mon, 3 Aug 2020 14:55:03 +0200 Subject: feat: hash file names in gen cache (#6911) --- test_util/src/lib.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test_util') diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index a6dc47872..7c754e02d 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -354,6 +354,17 @@ pub async fn run_all_servers() { HeaderValue::from_static("application/javascript"), ); res + })) + .or(warp::path!("cli"/"tests"/"subdir"/"file_with_:_in_name.ts").map(|| { + let mut res = Response::new(Body::from( + "console.log('Hello from file_with_:_in_name.ts');", + )); + let h = res.headers_mut(); + h.insert( + "Content-type", + HeaderValue::from_static("application/typescript"), + ); + res })); let content_type_handler = warp::any() -- cgit v1.2.3