thheller / thheller/shadow-http
ProxyHandler throws away the path of a target URL
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
In shadow-cljs 3.4.6, if I configure a :proxy-url "http://localhost:7000/my-server", and make a request to my shadow-cljs server of http://localhost:3000/api/ping, it requests http://localhost:7000/api/ping instead of http://localhost:7000/my-server/api/ping.
This used to work fine on older versions of shadow-cljs (3.3.5, which may not have used this server?).
My work-around is to introduce my own handler based on http-kit to proxy requests to my test server.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by reproducing the request with :proxy-url "http://localhost:7000/my-server" and compare it with the older shadow-cljs 3.3.5 behavior; done when a request to /api/ping reaches http://localhost:7000/my-server/api/ping rather than dropping the configured path.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100