Skip to content

Commit

Permalink
remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
puzza007 committed Sep 13, 2019
1 parent fa1ab04 commit 9b84730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion c_src/katipo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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;
Expand Down

0 comments on commit 9b84730

Please sign in to comment.