diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2006-03-01 20:04:06 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2006-03-01 20:04:06 +0000 |
commit | a6ba702798b984d40c9c68e90de8c358b3f2a386 (patch) | |
tree | 6f9f81f51f559bc82e4f3566b99565a681218ae2 /test/basic.c | |
parent | da00dd550922abda9fe5799669fac035cc38057f (diff) | |
download | neon-a6ba702798b984d40c9c68e90de8c358b3f2a386.tar.gz |
* src/ne_basic.c (dispatch_to_fd): Fix content-range parsing.
* test/basic.c (get_range, fail_range_*): Fix test cases.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@979 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'test/basic.c')
-rw-r--r-- | test/basic.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/basic.c b/test/basic.c index d056492..0dde7e5 100644 --- a/test/basic.c +++ b/test/basic.c @@ -1,6 +1,6 @@ /* Tests for high-level HTTP interface (ne_basic.h) - Copyright (C) 2002-2005, Joe Orton <joe@manyfish.co.uk> + Copyright (C) 2002-2006, Joe Orton <joe@manyfish.co.uk> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -163,7 +163,7 @@ static int get_range(void) { return do_range(1, 10, NULL, "HTTP/1.1 206 Widgets\r\n" "Connection: close\r\n" - "Content-Range: bytes 1-10\r\n" + "Content-Range: bytes 1-10/10\r\n" "Content-Length: 10\r\n\r\nabcdefghij"); } @@ -171,7 +171,7 @@ static int fail_range_length(void) { return do_range(1, 10, "range response length mismatch should fail", "HTTP/1.1 206 Widgets\r\n" "Connection: close\r\n" - "Content-Range: bytes 1-2\r\n" + "Content-Range: bytes 1-2/2\r\n" "Content-Length: 2\r\n\r\nab"); } @@ -179,7 +179,7 @@ static int fail_range_units(void) { return do_range(1, 2, "range response units check should fail", "HTTP/1.1 206 Widgets\r\n" "Connection: close\r\n" - "Content-Range: fish 1-2\r\n" + "Content-Range: fish 1-2/2\r\n" "Content-Length: 2\r\n\r\nab"); } @@ -187,7 +187,7 @@ static int fail_range_notrange(void) { return do_range(1, 2, "non-ranged response should fail", "HTTP/1.1 200 Widgets\r\n" "Connection: close\r\n" - "Content-Range: bytes 1-2\r\n" + "Content-Range: bytes 1-2/2\r\n" "Content-Length: 2\r\n\r\nab"); } |