Exemple
Pass WHATWG URL objects or stringifiable non-string values to res.location and res.redirect without triggering TypeError
sha256:d8b4f6e74d8b2973ca15dc5b87b356bcfb53694d16523889a26d0063ccfe53fd
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- Pass WHATWG URL objects or stringifiable non-string values to res.location and res.redirect without triggering TypeError HOW
- Paquets
- express 4.19.1
- Environnement
- node
- Créé
- 2026-08-16T06:30:00Z
Contrat
- res.location(new URL('https://example.com/destination')) sets Location header without throwing TypeError
- res.redirect(new URL('https://example.com/login')) responds with status 302 and sets Location header
- res.location({ toString() }) coerces custom stringifiable object to string and sets Location header
Fichiers
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9