driverdan / node-XMLHttpRequest

XMLHttpRequest for node.js
http://thedanexperiment.com/2009/10/04/emulating-xmlhttprequest-in-node-js/
MIT License
416 stars 299 forks source link

Improvements to redirect handling #140

Closed jasonjensen closed 1 year ago

jasonjensen commented 7 years ago

There are three changes here.

  1. An improved handling of relative redirects.
  2. A switch of protocols when redirected from http to https and vice versa (in retrospect, similar to https://github.com/driverdan/node-XMLHttpRequest/pull/131 ).
  3. The final url is added to the request object when the request ends.
hmoog commented 6 years ago

checkout https://www.npmjs.com/package/xmlhttprequest-ts - i added your pull request