From 750166f1164b78610cbdbe5363aa1c18bdd6e8fa Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 4 Oct 2012 16:22:39 +0200 Subject: file: fix two enum vs. float comparisations --- uhttpd-file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'uhttpd-file.c') 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)); -- cgit v1.2.1