Fix comparison of URLs and request method.

Closes #6.