webhookd always returns HTTP status 200 for a script
Closed this issue · 1 comments
bijeebuss2 commented
webhookd --version
Version: v1.20.0
Git commit: 8f8e69f
Built: Thu Aug 22 19:57:59 UTC 2024
./scripts/test.sh
#!/bin/bash
exit 100
curl -v http://localhost:8080/test
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET /test HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.61.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Access-Control-Allow-Headers: Accept, Content-Type, Content-Length, Accept-Encoding, Authorization
< Access-Control-Allow-Methods: *
< Access-Control-Allow-Origin: *
< Cache-Control: no-cache
< Connection: keep-alive
< Content-Type: text/plain; charset=utf-8
< X-Content-Type-Options: nosniff
< X-Hook-Id: 3
< X-Request-Id: 1725466639319220844
< Date: Wed, 04 Sep 2024 16:17:19 GMT
< Transfer-Encoding: chunked
<
error: exit status 100
* Connection #0 to host localhost left intact
bijeebuss2 commented
NVM I see that I just need to set -hook-default-mode buffered
closing this