If status code is 3xx, we should fix the location.
add a test for correctly applying the location header

correctly apllies the location header to the response when the response
status code is 3xx
Merge pull request #13 from miniflycn/master

If response's status code is 3xx, we need to fix the location.