Update http.js

This commit is contained in:
Namhyeon Go 2022-01-17 19:07:08 +09:00 committed by GitHub
parent 0d1d1d37f7
commit ccc4b688b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -97,7 +97,11 @@ var HTTPObject = function(engine) {
};
this.setProxy = function(proxy) {
this.proxy = proxy;
for (var k in proxy) {
if (k in this.proxy) {
this.proxy[k] = proxy[k];
}
}
return this;
};