Replies: 1 comment
-
Looks like you forgot the proxyRes: responseInterceptor(
async (responseBuffer, proxyRes, req, res) => { Documentation/Example: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Check this code - I'm trying to replace the host in an M3U playlist response (original address is
http://10.0.0.1/PRIVATE_HLS.m3u
but I'm local forwarding SSH 0.0.0.0:8081 -> 80 and 0.0.00:9091->9091
console.log(modifiedResponse)
logs desired replaced responseCan you help?
Curl response headers:
HTTP/1.1 200 OK Accept-Ranges: bytes Connection: Keep-Alive Content-Length: 8558 Content-Type: audio/mpegurl Date: Sat, 31 Aug 2024 15:31:23 GMT Date: Sat, 31 Aug 2024 15:31:23 GMT ETag: "216e-618cb07f294d5" Keep-Alive: timeout=5, max=100 Last-Modified: Sun, 19 May 2024 09:15:51 GMT X-Powered-By: Express server: Apache/2.4.52 (Ubuntu)
code:
Beta Was this translation helpful? Give feedback.
All reactions