Skip to content

Commit 8946458

Browse files
committed
Add link to verify the completeness disallow headers
Signed-off-by: zibo <ziboilihua@gmail.com>
1 parent 8fffd3e commit 8946458

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/handlers/response-interceptor.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ type Interceptor = (
1212
res: http.ServerResponse
1313
) => Promise<Buffer | string>;
1414

15+
/**
16+
* Disallow headers when response contains trailer
17+
* source: https://developer.mozilla.org/docs/Web/HTTP/Headers/Trailer
18+
*/
1519
const TrailerDisallowHeaders: string[] = [
1620
'content-length',
1721
'host',

0 commit comments

Comments
 (0)