Revert "Refactored the middleware specs that check for headers update"

This reverts commit 25258e5530a4a8dc3d4ca6460750a033d4b20d84.