diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2022-01-27 10:00:58 +0100 |
---|---|---|
committer | Sven Nierlein <sven@nierlein.org> | 2022-01-29 12:17:37 +0100 |
commit | ee2a60fc4e26828b115051564706f8fbc4c4b153 (patch) | |
tree | fe592945ebbbd82556820686f341a3070edb71d1 /plugins/picohttpparser/picohttpparser.h | |
parent | 737412f7391ae430a51e8f2c2a3b1ab2d35a6394 (diff) | |
download | monitoring-plugins-ee2a60fc4e26828b115051564706f8fbc4c4b153.tar.gz |
fixed -ffollow for HTTP/2.0 (Fixes #1685): added major_version parsing to PicoHTTPParser
Diffstat (limited to 'plugins/picohttpparser/picohttpparser.h')
-rw-r--r-- | plugins/picohttpparser/picohttpparser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/picohttpparser/picohttpparser.h b/plugins/picohttpparser/picohttpparser.h index 0849f844..8f13b36f 100644 --- a/plugins/picohttpparser/picohttpparser.h +++ b/plugins/picohttpparser/picohttpparser.h @@ -49,10 +49,10 @@ struct phr_header { /* returns number of bytes consumed if successful, -2 if request is partial, * -1 if failed */ int phr_parse_request(const char *buf, size_t len, const char **method, size_t *method_len, const char **path, size_t *path_len, - int *minor_version, struct phr_header *headers, size_t *num_headers, size_t last_len); + int *major_version, int *minor_version, struct phr_header *headers, size_t *num_headers, size_t last_len); /* ditto */ -int phr_parse_response(const char *_buf, size_t len, int *minor_version, int *status, const char **msg, size_t *msg_len, +int phr_parse_response(const char *_buf, size_t len, int *major_version, int *minor_version, int *status, const char **msg, size_t *msg_len, struct phr_header *headers, size_t *num_headers, size_t last_len); /* ditto */ |