Using proxy with a query results in an added slash being forwarded

I’m trying to make a simple proxy for the http endpoint on NSQ

localhost:8001
proxy / localhost:4151/pub?topic=caddy

Any data posted to the site root should be forwarded to the proxy url where the topic is defined

In the NSQ log files I can see that the request goes to the wrong address

/pub/?topic=caddy

How can I get the proxy to work correctly?

This could be a bug – would you please open an issue so we can take a look? Thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.