Update XMLHTTPRequest.cpp

When network connect failed, still invoke the javascript callback method: onreadystateCallback, change some tab to 4 spaces with #3036