Added Connection: close header to HttpClient in ConnectionOut

This commit is contained in:
Rsl1122 2018-08-21 16:56:34 +03:00
parent f5cc33a717
commit 8fb54ed905

View File

@ -144,6 +144,7 @@ public class ConnectionOut {
post.setHeader("Content-Type", "application/x-www-form-urlencoded"); post.setHeader("Content-Type", "application/x-www-form-urlencoded");
post.setHeader("charset", "UTF-8"); post.setHeader("charset", "UTF-8");
post.setHeader("Connection", "close");
byte[] toSend = parameters.getBytes(); byte[] toSend = parameters.getBytes();
post.setEntity(new ByteArrayEntity(toSend)); post.setEntity(new ByteArrayEntity(toSend));