semaphoreio/semaphore

Add missing `Content-Type` headers in public api

Aberta

#372 aberto em 9 de jun. de 2025

 (3 comentários) (0 reação) (2 responsáveis)Elixir (77 forks)batch import
enhancementgood first issue

Métricas do repositório

Stars
 (1.519 estrelas)
Métricas de merge de PR
 (Mesclagem média 6d 15h) (40 fundiu PRs em 30d)

Description

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

Guia do colaborador