Don't shutdown the client side of an HTTP request after sending it. Some servers don't like that.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4363 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
1c52446331
commit
b984811851
@ -79,7 +79,6 @@ export function fetch(url, options, allowed_hosts) {
|
|||||||
fullRequest.set(headers, 0);
|
fullRequest.set(headers, 0);
|
||||||
fullRequest.set(body, headers.length);
|
fullRequest.set(body, headers.length);
|
||||||
socket.write(fullRequest);
|
socket.write(fullRequest);
|
||||||
socket.shutdown();
|
|
||||||
}).catch(function(error) {
|
}).catch(function(error) {
|
||||||
reject(error);
|
reject(error);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user