Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
robe2 committed Aug 4, 2023
1 parent d984e9a commit a39e3a0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -1079,8 +1079,7 @@ Datum http_request(PG_FUNCTION_ARGS)
elog(ERROR, "http_request.method is NULL");
method_str = TextDatumGetCString(values[REQ_METHOD]);
method = request_type(method_str);
elog(DEBUG2, "pgsql-http: method_str '%s'", method_str);
elog(DEBUG2, "pgsql-http: method '%d'", method);
elog(DEBUG2, "pgsql-http: method_str: '%s', method: %d", method_str, method);

/* Set up global HTTP handle */
g_http_handle = http_get_handle();
Expand Down Expand Up @@ -1209,7 +1208,7 @@ Datum http_request(PG_FUNCTION_ARGS)
}
else if (method == HTTP_UNKNOWN)
{
/** assume the user knows what they are doing and pass unchanged **/
/* Assume the user knows what they are doing and pass unchanged */
CURL_SETOPT(g_http_handle, CURLOPT_CUSTOMREQUEST, method_str);
}
else
Expand All @@ -1232,7 +1231,7 @@ Datum http_request(PG_FUNCTION_ARGS)
elog(ERROR, "http_request.content is NULL");
}
else if ( method == HTTP_UNKNOWN ){
/** assume the user knows what they are doing and pass unchanged **/
/* Assume the user knows what they are doing and pass unchanged */
CURL_SETOPT(g_http_handle, CURLOPT_CUSTOMREQUEST, method_str);
}

Expand Down

0 comments on commit a39e3a0

Please sign in to comment.