dboa9 commited on
Commit
aa13a05
·
1 Parent(s): 4b3ad41

Fix gateway proxy: /gateway is 8 chars not 7, was creating 18789y port

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -463,7 +463,7 @@ async def proxy_openclaw_gateway(request: Request, path: str = ""):
463
  raise HTTPException(status_code=503, detail="httpx not installed; cannot proxy to Clawdbot gateway")
464
  target_path = request.url.path
465
  if target_path.startswith("/gateway"):
466
- target_path = target_path[7:] or "/" # strip /gateway -> / or /foo
467
  target = f"{OPENCLAW_GATEWAY_URL}{target_path}"
468
  if request.url.query:
469
  target += "?" + request.url.query
 
463
  raise HTTPException(status_code=503, detail="httpx not installed; cannot proxy to Clawdbot gateway")
464
  target_path = request.url.path
465
  if target_path.startswith("/gateway"):
466
+ target_path = target_path[8:] or "/" # strip /gateway -> / or /foo
467
  target = f"{OPENCLAW_GATEWAY_URL}{target_path}"
468
  if request.url.query:
469
  target += "?" + request.url.query