Skip to content

Commit

Permalink
Use PG_VERSION_STR
Browse files Browse the repository at this point in the history
  • Loading branch information
Florents-Tselai committed Jan 2, 2021
1 parent cfce153 commit eb0711b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ http_get_handle()
curl_easy_setopt(handle, CURLOPT_TIMEOUT_MS, 5000);

/* Set the user agent. If not set, use PG_VERSION as default */
curl_easy_setopt(handle, CURLOPT_USERAGENT, PG_VERSION);
curl_easy_setopt(handle, CURLOPT_USERAGENT, PG_VERSION_STR);

if (!handle)
ereport(ERROR, (errmsg("Unable to initialize CURL")));
Expand Down

0 comments on commit eb0711b

Please sign in to comment.