We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a8df41 commit f826cfcCopy full SHA for f826cfc
1 file changed
http.c
@@ -1224,7 +1224,8 @@ Datum http_request(PG_FUNCTION_ARGS)
1224
CURL_SETOPT(g_http_handle, CURLOPT_CUSTOMREQUEST, "DELETE");
1225
}
1226
1227
- CURL_SETOPT(g_http_handle, CURLOPT_POSTFIELDS, text_to_cstring(content_text));
+ CURL_SETOPT(g_http_handle, CURLOPT_POSTFIELDS, (char *)(VARDATA(content_text)));
1228
+ CURL_SETOPT(g_http_handle, CURLOPT_POSTFIELDSIZE, content_size);
1229
1230
else if ( method == HTTP_PUT || method == HTTP_PATCH || method == HTTP_UNKNOWN )
1231
{
0 commit comments