From 9bd430af4b3e9a8b145ec3d3850e176b13d788dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 1 Jun 2023 16:29:30 +0200 Subject: [PATCH] Return HTTP 200 even on error to prevent Gitlab from disabling the WH automatically MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/web.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web.rs b/src/web.rs index 77994df..b394aeb 100644 --- a/src/web.rs +++ b/src/web.rs @@ -29,7 +29,7 @@ fn error_res(e: E) -> Result, Infallible> { let text = format!("{:?}", e); let res = Response::builder() - .status(400) + .status(200) .body(Body::from(Vec::from(text.as_bytes()))) .unwrap(); Ok(res)