Skip to content

Commit aea1593

Browse files
committed
Add headers to new requests.
1 parent 5c47220 commit aea1593

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/main/java/fr/rabian/ovhApi/http/HttpRequests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static int sendGet(String url, StringBuffer out, List<Header> headers) th
5151
* @throws Exception Exception Occuring during the request
5252
*/
5353
public static int sendDelete(String url, StringBuffer out, List<Header> headers) throws Exception {
54-
return sendWithoutBody(url, "DELETE", out, null);
54+
return sendWithoutBody(url, "DELETE", out, headers);
5555
}
5656

5757
/**
@@ -101,7 +101,7 @@ private static int sendWithoutBody(String url, String method, StringBuffer out,
101101
* @throws Exception Occuring during the request
102102
*/
103103
public static int sendPut(String url, StringBuffer out, String body, List<Header> headers) throws Exception {
104-
return sendWithBody(url, "PUT", out, body, null);
104+
return sendWithBody(url, "PUT", out, body, headers);
105105
}
106106

107107
/**

0 commit comments

Comments
 (0)