Skip to content

Commit

Permalink
Version in define
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Jun 20, 2017
1 parent aa1d52d commit db2a100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions http.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
/* Constants */
#define HTTP_VERSION "1.1"
#define HTTP_ENCODING "gzip"
#define CURL_MIN_VERSION 0x071400 /* 7.20.0 */

/* System */
#include <regex.h>
Expand Down Expand Up @@ -510,8 +511,7 @@ http_check_curl_version(const curl_version_info_data *version_info)
elog(DEBUG2, "pgsql-http: curl version number 0x%x", version_info->version_num);
elog(DEBUG2, "pgsql-http: ssl version %s", version_info->ssl_version);

/* 0x071400 == 7.20.0, each hex digit is for one version level (0xMMmmpp) */
if ( version_info->version_num < 0x071400 )
if ( version_info->version_num < CURL_MIN_VERSION )
{
elog(ERROR, "pgsql-http requires Curl version 0.7.20 or higher");
}
Expand Down

0 comments on commit db2a100

Please sign in to comment.