test: add tests for setting default headers

This commit is contained in:
knight42
2017-10-22 13:06:05 +08:00
parent f4437ea7b1
commit 2bd558d8c7
4 changed files with 116 additions and 8 deletions

View File

@@ -19,10 +19,10 @@ fn test_multipart() {
request: format!("\
POST /multipart/1 HTTP/1.1\r\n\
Host: $HOST\r\n\
Content-Type: multipart/form-data; boundary={}\r\n\
Content-Length: 123\r\n\
User-Agent: $USERAGENT\r\n\
Accept: */*\r\n\
Content-Type: multipart/form-data; boundary={}\r\n\
Content-Length: 123\r\n\
Accept-Encoding: gzip\r\n\
\r\n\
{}\