Revert "added httprequest fixes"

This reverts commit 3b7ebe9f00b85486be5da9d9e10fcf46fd1e705b.
added settings for proper middleware