assemblee-virtuelle / assemblee-virtuelle/semapps

Ne pas modifier le Content-Type ou l'Accept des headers

Open
#320 2 comments 0 reactions 0 assignees View on GitHub
refactoring
Dominant language
TypeScript
Stars
103
Forks
14
Avg merge
1m
Merged PRs (30d)
2

Description

Je viens de passer une journée à débugger un problème qui était dû au fait que les middlewares changeaient la valeur du `Content-Type`, `application/json` devenant `application/ld+json`.

On ne devrait pas toucher aux headers de la requête originelle.

On pourrait en revanche avoir une fonction type `parseType` qui retournerait `application/ld+json` si on lui met `application/json` en input, facilitant ainsi la détection du format.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the middleware that changes the request Content-Type or Accept headers, then trace how format detection currently works. Check whether a parseType entry point already exists. Done means the original request headers remain unchanged while the needed format can still be detected.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.