added header method to redirect response.
Merge branch '4.0'