Fix HTTP request regular expression

If a request path was for the front page (i.e. "/") the regular
expression would fail to parse it.

This commit fixes the regular expression and adds a test for it.