colosa/restclient — pull request #2 by suca (2013-12-12 18:17:31+00:00)
Title: Modying position of the switch and this.authorization.basic_user was replaced to this.authorization.password for the basic option

I just moved all the switch after open the XMLHttpRequest, also that the this.authorization.basic_user was replaced to this.authorization.password for the 'basic' option inside the switch