Correct request path if there is no query component in the incoming URL
Merge pull request #2 from novemberborn/fix-path

Correct request path if there is no query component in the incoming URL