From 91ff93803512e3438ce165b23bb5b9fb404df288 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 5 Sep 2008 17:58:53 +0000 Subject: Improved the logic the decides whether to use HTTP 1.1 features or not in a request. Detect cases where an upload must be sent chunked and the server supports only HTTP 1.0 and return CURLE_UPLOAD_FAILED. --- tests/data/test1053 | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'tests/data/test1053') diff --git a/tests/data/test1053 b/tests/data/test1053 index dbc63e808..8c60e5ce3 100644 --- a/tests/data/test1053 +++ b/tests/data/test1053 @@ -12,7 +12,7 @@ followlocation # Server-side -HTTP/1.0 307 Redirect swsclose +HTTP/1.1 307 Redirect swsclose Date: Thu, 29 Jul 2008 14:49:00 GMT Server: test-server/fake Location: data/10530002.txt?coolsite=yes @@ -21,24 +21,28 @@ Connection: close -HTTP/1.0 200 OK swsclose +HTTP/1.1 200 OK swsclose Date: Thu, 09 Nov 2010 14:49:00 GMT Server: test-server/fake +Content-Length: 11 +Connection: close blablabla -HTTP/1.0 307 Redirect swsclose +HTTP/1.1 307 Redirect swsclose Date: Thu, 29 Jul 2008 14:49:00 GMT Server: test-server/fake Location: data/10530002.txt?coolsite=yes Content-Length: 0 Connection: close -HTTP/1.0 200 OK swsclose +HTTP/1.1 200 OK swsclose Date: Thu, 09 Nov 2010 14:49:00 GMT Server: test-server/fake +Content-Length: 11 +Connection: close blablabla -- cgit v1.2.3