hoisie/web.go — pull request #89 by bjornt (2011-11-04 18:48:32+00:00)
Title: Don't break if port information isn't included in RemoteAddr

On Google App Engine, the port doesn't seem to be included in hr.RemoteAddr in newRequest. If that happens, port gets set to 0, and the IP to hr.RemoteAddr.

This might be a bug in App Engine or somewhere else, but at least with this change, it's possible to use web.go there.

I would have written a test, but it didn't seem easy to write one for this fix.