diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2012-10-04 16:22:39 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2012-10-04 18:11:01 +0300 |
commit | 750166f1164b78610cbdbe5363aa1c18bdd6e8fa (patch) | |
tree | d980b120d4c403c11d320095d79a44bed5eba70b | |
parent | b857ca156ff665ca5d02bda3d5c4ecc512694f71 (diff) | |
download | uhttpd-750166f1164b78610cbdbe5363aa1c18bdd6e8fa.tar.gz |
file: fix two enum vs. float comparisations
-rw-r--r-- | uhttpd-file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/uhttpd-file.c b/uhttpd-file.c index 23e0db8..e72f80e 100644 --- a/uhttpd-file.c +++ b/uhttpd-file.c @@ -377,7 +377,7 @@ bool uh_file_request(struct client *cl, struct path_info *pi) pi->stat.st_size)); /* if request was HTTP 1.1 we'll respond chunked */ - if ((cl->request.version > 1.0) && + if ((cl->request.version > UH_HTTP_VER_1_0) && (cl->request.method != UH_HTTP_MSG_HEAD)) { ensure_out(uh_http_send(cl, NULL, @@ -412,7 +412,7 @@ bool uh_file_request(struct client *cl, struct path_info *pi) /* write status */ ensure_out(uh_file_response_200(cl, NULL)); - if (cl->request.version > 1.0) + if (cl->request.version > UH_HTTP_VER_1_0) ensure_out(uh_http_send(cl, NULL, "Transfer-Encoding: chunked\r\n", -1)); |