diff --git a/.travis.yml b/.travis.yml index 0a02c59..c0b160e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -39,10 +39,7 @@ otp_release: script: - export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH - - ./rebar3 update && ./rebar3 compile - - ldd ./priv/katipo - - /usr/local/bin/curl --verbose --http3 https://quic.tech:8443 - - ./rebar3 ct && ./rebar3 dialyzer && ./rebar3 coveralls send + - ./rebar3 update && ./rebar3 ct && ./rebar3 dialyzer && ./rebar3 coveralls send before_install: - sudo ifconfig diff --git a/c_src/katipo.c b/c_src/katipo.c index 327b23a..ccc9fbb 100644 --- a/c_src/katipo.c +++ b/c_src/katipo.c @@ -669,7 +669,6 @@ static size_t header_cb(void *ptr, size_t size, size_t nmemb, void *data) { size_t adjusted_size = realsize; ConnInfo *conn = (ConnInfo *)data; char *header; - long http_version; // the last two chars of headers are \r\n except for http3... if (realsize > 2) { @@ -682,6 +681,7 @@ static size_t header_cb(void *ptr, size_t size, size_t nmemb, void *data) { // headers. They don't seem to have the trailing \r\n that the // former HTTP versions do #if LIBCURL_VERSION_NUM >= 0x074200 + long http_version; curl_easy_getinfo(conn->easy, CURLINFO_HTTP_VERSION, &http_version); if (http_version == CURL_HTTP_VERSION_3) { adjusted_size += 1;