Closed
Description
🐛 Bug Report
WithHealthzEndpoint
didn't set Content-Type to anything but text/plain; charset=utf-8
. Shouldn't it be application/json
?
To Reproduce
- Enable WithHealthzEndpoint
- GET to the /healthz endpoint
Expected behavior
Content-Type: application/json
Grpc-Metadata-Content-Type: application/grpc
Actual Behavior
Content-Type: text/plain; charset=utf-8
Your Environment
Go 1.18 with grpc-gateway v2.10.0
Linux 5.17.0-arch1-1 #1 SMP PREEMPT Tue, 22 Mar 2022 23:36:09 +0000 x86_64 GNU/Linux