chimurai / http-proxy-middleware

:zap: The one-liner node.js http-proxy middleware for connect, express, next.js and more
MIT License
10.68k stars 826 forks source link

fix(http-proxy): remove disallowed headers when response headers contains trailer #830

Open ziboilihua opened 1 year ago

ziboilihua commented 1 year ago

Description

Process will exit when proxy response header both contains trailer and disallow headers eg.content-length

Motivation and Context

How has this been tested?

I've created e2e test for this case, and all unit tests passed.

Types of changes

Checklist: