Skip to content

domcloud/proxy-fix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

proxy-fix

This simple app simply spawns another HTTP server with PORT env injected with another number, then proxying it with a clean header request.

Built primarily for fixing phusion/passenger#2521 temporarily. HTTP and Websocket is supported.

Install

Download from releases or build it and place it to ~/.local/bin/bunfix

Usage

Use Makefile to build and run the app. Requires make, go and bun already installed.

make build
make run

Testing

Use curl and wscat to test with test/app.ts.

curl -H '!~bad-headerz: x' -vvv localhost:8080
wscat -H '!~bad-headerz: x' -c "ws://localhost:8080/ws"