Skip to content

WithHealthzEndpoint should answer with application/json Content-Type #2611

Closed
@GreyXor

Description

@GreyXor

🐛 Bug Report

WithHealthzEndpoint didn't set Content-Type to anything but text/plain; charset=utf-8. Shouldn't it be application/json?

To Reproduce

  1. Enable WithHealthzEndpoint
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions