Gateway incorrectly sends request body to downstream property


When a POST request is sent via the Gateway, the request body is not correctly sent by ARR causing the downstream property to encounter an I/O error or timeout because it is expecting to read some data (defined by the Content-Length header), but no data is sent.

Initially reported in discussion: https://sg.codeplex.com/discussions/500684


jamesbak wrote Jan 17, 2014 at 12:52 AM

This defect was due to the WIF modules accessing the body of the request to check for authentication and not calling HttpRequest.InsertEntityBody to reset the stream pointer.

Fixed by deriving a type and overriding the virtual method to make the appropriate call.