HTTP tests: use CRLF as header seperator according to RFC 2616
Updates the test suite to handle binary-mode header output.
This commit is contained in:
@@ -10,14 +10,14 @@ RETR
|
||||
<reply>
|
||||
# file1391 contents...
|
||||
<data nocheck="yes">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 6
|
||||
Connection: close
|
||||
Content-Type: text/html
|
||||
Content-Disposition: filename=name1391; charset=funny; option=strange
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 6
|
||||
Connection: close
|
||||
Content-Type: text/html
|
||||
Content-Disposition: filename=name1391; charset=funny; option=strange
|
||||
|
||||
MOOOO
|
||||
</data>
|
||||
</reply>
|
||||
@@ -53,14 +53,14 @@ QUIT
|
||||
</protocol>
|
||||
|
||||
<file1 name="log/download1391">
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 6
|
||||
Connection: close
|
||||
Content-Type: text/html
|
||||
Content-Disposition: filename=name1391; charset=funny; option=strange
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 09 Nov 2010 14:49:00 GMT
|
||||
Server: test-server/fake
|
||||
Content-Length: 6
|
||||
Connection: close
|
||||
Content-Type: text/html
|
||||
Content-Disposition: filename=name1391; charset=funny; option=strange
|
||||
|
||||
MOOOO
|
||||
</file1>
|
||||
|
||||
@@ -76,8 +76,8 @@ MOOOO
|
||||
250 CWD command successful.
|
||||
229 Entering Passive Mode (stripped)
|
||||
200 I modify TYPE as you wanted
|
||||
213 214
|
||||
150 Binary data connection for 1391 () (214 bytes).
|
||||
213 222
|
||||
150 Binary data connection for 1391 () (222 bytes).
|
||||
226 File transfer complete
|
||||
</file2>
|
||||
<stripfile2>
|
||||
|
||||
Reference in New Issue
Block a user