tmpvar/jsdom — pull request #631 by FeGs (2013-05-29 14:59:22+00:00)
Title: Fix a problem about url when occur redirection

I found a problem that location.href is not changed when occur redirection.
request supports following redirect as far as I know.
The result of some tests, redirected url is returned in callback function of request. (in my code, request.request.uri.href. exactly, response.request.uri.href)
But redirected url is not applied to window object. (window.location.href)

I tested original code some cases, and created test web page. (http://fegs.kr:10101)
Here is test code.

```javascript
var jsdom = require("jsdom");
jsdom.env({
html: "http://fegs.kr:10101",
done: function(errors, window) {
console.log(window.document.body.innerHTML);
console.log(window.location);
}
});
```

Expected :
> Redirect Test
>
{ protocol: 'http:',
slashes: true,
host: 'fegs.kr:10101',
port: '10101',
hostname: 'fegs.kr',
href: 'http://fegs.kr:10101/redir',
pathname: '/redir',
path: '/redir',
reload: [Function],
replace: [Function],
toString: [Function],
hash: [Getter/Setter],
search: [Getter/Setter] }

Actual :
> Redirect Test
>
{ protocol: 'http:',
slashes: true,
host: 'fegs.kr:10101',
port: '10101',
hostname: 'fegs.kr',
href: 'http://fegs.kr:10101/',
pathname: '/',
path: '/',
reload: [Function],
replace: [Function],
toString: [Function],
hash: [Getter/Setter],
search: [Getter/Setter] }

You can test using my page.
and modified code works expected.