Skip to content

Commit 7232a28

Browse files
committed
Correct method pass in wo. body reqs.
1 parent aea1593 commit 7232a28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private static int sendWithoutBody(String url, String method, StringBuffer out,
6969
URL obj = new URL(url);
7070
HttpURLConnection con = (HttpURLConnection) obj.openConnection();
7171

72-
con.setRequestMethod("GET");
72+
con.setRequestMethod(method);
7373
if (headers != null) {
7474
for (Header header : headers) {
7575
con.setRequestProperty(header.getKey(), header.getValue());

0 commit comments

Comments
 (0)