diff options
| author | Andreas Baumann <mail@andreasbaumann.cc> | 2022-01-27 10:00:58 +0100 |
|---|---|---|
| committer | Andreas Baumann <mail@andreasbaumann.cc> | 2022-01-27 10:00:58 +0100 |
| commit | dd170a4b1b55298da12fdc38c514b13aaf47fcbc (patch) | |
| tree | 70b01dc1f402161d2359b8af0172225865046fe9 /plugins/check_curl.c | |
| parent | e2397167c7e5c7a02b68de45de946f63706e7d12 (diff) | |
| download | monitoring-plugins-dd170a4.tar.gz | |
fixed -ffollow for HTTP/2.0 (Fixes #1685): added major_version parsing to PicoHTTPParser
Diffstat (limited to 'plugins/check_curl.c')
| -rw-r--r-- | plugins/check_curl.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/check_curl.c b/plugins/check_curl.c index 14cc8463..7df01c5d 100644 --- a/plugins/check_curl.c +++ b/plugins/check_curl.c | |||
| @@ -1054,7 +1054,7 @@ redir (curlhelp_write_curlbuf* header_buf) | |||
| 1054 | char *new_url; | 1054 | char *new_url; |
| 1055 | 1055 | ||
| 1056 | int res = phr_parse_response (header_buf->buf, header_buf->buflen, | 1056 | int res = phr_parse_response (header_buf->buf, header_buf->buflen, |
| 1057 | &status_line.http_minor, &status_line.http_code, &status_line.msg, &msglen, | 1057 | &status_line.http_major, &status_line.http_minor, &status_line.http_code, &status_line.msg, &msglen, |
| 1058 | headers, &nof_headers, 0); | 1058 | headers, &nof_headers, 0); |
| 1059 | 1059 | ||
| 1060 | location = get_header_value (headers, nof_headers, "location"); | 1060 | location = get_header_value (headers, nof_headers, "location"); |
| @@ -2188,7 +2188,7 @@ check_document_dates (const curlhelp_write_curlbuf *header_buf, char (*msg)[DEFA | |||
| 2188 | size_t msglen; | 2188 | size_t msglen; |
| 2189 | 2189 | ||
| 2190 | int res = phr_parse_response (header_buf->buf, header_buf->buflen, | 2190 | int res = phr_parse_response (header_buf->buf, header_buf->buflen, |
| 2191 | &status_line.http_minor, &status_line.http_code, &status_line.msg, &msglen, | 2191 | &status_line.http_major, &status_line.http_minor, &status_line.http_code, &status_line.msg, &msglen, |
| 2192 | headers, &nof_headers, 0); | 2192 | headers, &nof_headers, 0); |
| 2193 | 2193 | ||
| 2194 | server_date = get_header_value (headers, nof_headers, "date"); | 2194 | server_date = get_header_value (headers, nof_headers, "date"); |
| @@ -2246,7 +2246,7 @@ get_content_length (const curlhelp_write_curlbuf* header_buf, const curlhelp_wri | |||
| 2246 | curlhelp_statusline status_line; | 2246 | curlhelp_statusline status_line; |
| 2247 | 2247 | ||
| 2248 | int res = phr_parse_response (header_buf->buf, header_buf->buflen, | 2248 | int res = phr_parse_response (header_buf->buf, header_buf->buflen, |
| 2249 | &status_line.http_minor, &status_line.http_code, &status_line.msg, &msglen, | 2249 | &status_line.http_major, &status_line.http_minor, &status_line.http_code, &status_line.msg, &msglen, |
| 2250 | headers, &nof_headers, 0); | 2250 | headers, &nof_headers, 0); |
| 2251 | 2251 | ||
| 2252 | content_length_s = get_header_value (headers, nof_headers, "content-length"); | 2252 | content_length_s = get_header_value (headers, nof_headers, "content-length"); |
