RequestURI path is modified when path has multiple /
characters #60
Description
We are running cf-release 183.
It appears that the gorouter is modifying the Request Path of a request if prefixed with multiple '/' characters.
Example Request: http://test.app.com/bob
Router Log in Loggregator: GET /bob HTTP/1.1" 404 15
Example Request: http://test.app.com//bob (node the //
)
Router Log in Loggregator: GET http://bob HTTP/1.1
Note the addition of "http:" to the request path. This is what I'd expect to see:
Router Log in Loggregator: GET //bob HTTP/1.1
I would expect the go router to pass this path to the server unchanged.
You can see similar behaviour on pws. Though something appears to be stripping one of the slashes as you only get an error with 3 ///
.
Example pws Request: http://boshartifacts.cloudfoundry.org///joe
WEBrick response: Bad Request bad URI
http://joe'.`