semaphoreio/semaphore

Add missing `Content-Type` headers in public api

Aperta

#372 aperta il 9 giu 2025

 (3 commenti) (0 reazioni) (2 assegnatari)Elixir (77 fork)batch import
enhancementgood first issue

Metriche repository

Star
 (1519 stelle)
Metriche merge PR
 (Merge medio 6g 15h) (40 PR mergiate in 30 g)

Descrizione

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

Guida contributor