CenterForDigitalHumanities / CenterForDigitalHumanities/rerum_server_nodejs
Support `HEAD` requests on routes
- Lingua principale
- JavaScript
- Stelle
- 3
- Fork
- 6
- Merge medio
- 2g 47m
- PR unite (30g)
- 4
Descrizione
The main use case for this is so that things like tests can use a `HEAD` request to check for proof of life. The recent incident which brought this to our attention was the `/client/request-new-access-token` endpoint. A user was having 404 trouble because they were making a request like `/v1/client/request-new-access-token`. When I alerted them of the pattern, they did a `HEAD` request to `/client/request-new-access-token` to check but still got the 404. In this case, the token endpoints only handle `POST` requests and so there was no matching route for that `HEAD` request.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con la route `/client/request-new-access-token` e traccia come viene registrata la sua gestione POST-only. Confronta questo comportamento con la gestione delle route del progetto per le richieste HEAD. Il lavoro è completato quando una richiesta HEAD all’endpoint segnalato, incluso il percorso senza prefisso, non restituisce più 404; esegui o aggiungi i test delle route pertinenti, se disponibili.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- api, backend
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100