In below request, second header is having space which is causing the issue. If we remove it and hit the API it works fine otherwise 400 bad request error.
The same curl was working until 1.17 NGINX version, but after that we are facing the issue. Please suggest any solution for it
Request:
curl -ks --location --request GET 'https://<hostname>/employees' \
> --header 'emp_id: 110' \
> --header 'abcd xyz: hello'
Response:
<html>
<head><title>400 Bad Request</title></head>
<body>
<center><h1>400 Bad Request</h1></center>
<hr><center>nginx/1.23.2</center>
</body>
</html>