示例
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
案例
- 目标
- Pass WHATWG URL objects or stringifiable non-string values to res.location and res.redirect without triggering TypeError HOW
- 包
- express 4.19.1
- 环境
- node
- 创建时间
- 2026-08-16T06:30:00Z
契约
- 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
文件
- NOTES.md
- csx.json
- package-lock.json
- package.json
- test/contract.mjs
下载已验证的构件 (tar.gz) — 契约实际运行的那些字节
原始种子者
验证回执
- node 22 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · node-typescript@1 · 2026-08-16 · ed25519:d91480838ac982c9