/svc handler: add the owasp headers for consistency

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2026-05-19 20:11:33 +02:00
parent e567f92e64
commit bf23e0d549
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -71,6 +71,10 @@ int get_svc_handler(worker_st *ws, unsigned int http_ver)
if (ret < 0)
goto fail;
ret = add_owasp_headers(ws);
if (ret < 0)
goto fail;
/* end of headers */
ret = cstp_puts(ws, "\r\n");
if (ret < 0)
+5
View File
@@ -111,6 +111,11 @@ results=$(LD_PRELOAD=libsocket_wrapper.so curl -I -X GET -s https://$ADDRESS:$PO
CheckHeaders "$results"
echo "ok"
echo -n "Testing /svc ... "
results=$(LD_PRELOAD=libsocket_wrapper.so curl -I -X GET -s https://$ADDRESS:$PORT/svc --insecure)
CheckHeaders "$results"
echo "ok"
cleanup
exit 0