Fix an out of sequence statement
This commit is contained in:
parent
6de81cfd31
commit
032b789e33
1 changed files with 2 additions and 1 deletions
|
@ -101,10 +101,11 @@ public class HTTPRequestBuilder
|
|||
byte[] array = request.body.getBytes("UTF-8");
|
||||
connection.setRequestProperty("Content-Length" , "" + array.length);
|
||||
connection.setRequestProperty("Content-Type", request.contentType);
|
||||
connection.setDoInput(true);
|
||||
connection.setUseCaches(false);
|
||||
connection.setDoOutput(true);
|
||||
DataOutputStream dos = new DataOutputStream(connection.getOutputStream());
|
||||
dos.write(array);
|
||||
connection.setDoInput(true);
|
||||
dos.flush();
|
||||
dos.close();
|
||||
|
||||
|
|
Loading…
Reference in a new issue