semaphoreio/semaphore

Add missing `Content-Type` headers in public api

オープン

#372 opened on 2025/06/09

 (3 件のコメント) (0 件のリアクション) (2 人の担当者)Elixir (77 件のフォーク)batch import
enhancementgood first issue

Repository metrics

Stars
 (1,519 個のスター)
PR merge metrics
 (平均マージ 6d 15h) (30d で 40 merged PRs)

説明

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

コントリビューターガイド