Good point.  I used to have a strict check for host/port/path, but it looks like I accidentally loosened that up when I added the other two optional ones.  I can clean that up.