Requested URL is incorrect when PostHog host includes a path #274
Description
Version
3.17.0
Steps to Reproduce
- Set
com.posthog.posthog.POSTHOG_HOST
tohttp://localhost:3000/some/path
- Run a dummy server on port
3000
which logs incoming requests - Trigger a batch of events to be sent
- Observe that the requested URL is
http://localhost:3000/batch
Expected Result
The requested URL is http://localhost:3000/some/path/batch
Actual Result
The requested URL is http://localhost:3000/batch