Skip to content

Commit db0ebb7

Browse files
authored
Merge pull request #5 from ahuarte47/main_fix-error-message
Fix error message for GET requests
2 parents e0f38c6 + 9eb63c0 commit db0ebb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/http_client_extension.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static void HTTPGetRequestFunction(DataChunk &args, ExpressionState &state, Vect
143143
std::string response = GetJsonResponse(res->status, res->reason, res->body);
144144
return StringVector::AddString(result, response);
145145
} else {
146-
std::string response = GetJsonResponse(-1, GetHttpErrorMessage(res, "POST"), "");
146+
std::string response = GetJsonResponse(-1, GetHttpErrorMessage(res, "GET"), "");
147147
return StringVector::AddString(result, response);
148148
}
149149
});

0 commit comments

Comments
 (0)