Return env after running middleware stack.
Merge remote-tracking branch 'SebastianEdwards/patch-1'

* SebastianEdwards/patch-1:
  Return env after running middleware stack.