Fix REQUEST_URI when using a non-standard endpoint
Merge pull request #24 from dwaller/configurable_endpoint

Fix REQUEST_URI when using a non-standard endpoint