chimurai / http-proxy-middleware

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

docs(responseInterceptor): fix header manipulation example #967

Closed mcgwiz closed 3 months ago

mcgwiz commented 5 months ago

Description

responseInterceptor expects its function argument to return a value that can be passed to Buffer.from.

Motivation and Context

The documentation is misleading.

How has this been tested?

Confirmed locally.

Types of changes

Checklist:

coveralls commented 3 months ago

Coverage Status

coverage: 97.619%. remained the same when pulling e9ab06f06f39951d20ebac5f75dc6ce118af921e on mcgwiz:patch-1 into 84bfa46fc7174f46b9f24c1e7a7a1a977f0993f3 on chimurai:master.

chimurai commented 3 months ago

Thanks!