thheller / thheller/shadow-http

ProxyHandler throws away the path of a target URL

Open
#1 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.