Return HTTP 200 even on error to prevent Gitlab from disabling the WH automatically
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
fd96e86f80
commit
9bd430af4b
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ fn error_res<E: std::fmt::Debug>(e: E) -> Result<Response<Body>, Infallible> {
|
|||
|
||||
let text = format!("{:?}", e);
|
||||
let res = Response::builder()
|
||||
.status(400)
|
||||
.status(200)
|
||||
.body(Body::from(Vec::from(text.as_bytes())))
|
||||
.unwrap();
|
||||
Ok(res)
|
||||
|
|
Loading…
Reference in a new issue