semaphoreio/semaphore

Add missing `Content-Type` headers in public api

開放

#372 建立於 2025年6月9日

 (3 則留言) (0 個反應) (2 位負責人)Elixir (77 個分叉)batch import
enhancementgood first issue

倉庫指標

星標
 (1,519 顆星)
PR 合併指標
 (平均合併 6天 15小時) (30 天內合併 40 個 PR)

描述

Is your improvement proposal related to a problem? Please describe.

Currently, only some responses from the public API have a Content-Type header set. This can lead to issues when the requester expects a specific content type and it is not provided.

Describe the solution you'd like

Add Content-Type headers to all responses from the public API, ensuring that they are set to the appropriate type based on the content being returned (e.g., application/json for JSON responses).

Describe alternatives you've considered

No response

Additional context

貢獻者指南