Differences From Artifact [bc194dbeb7]:
- File tests/OFHTTPRequestTests.m — part of check-in [326634c95d] at 2012-03-07 22:33:10 on branch trunk — Implement HTTP/1.1 in OFHTTPRequest. (user: js, size: 2550) [annotate] [blame] [check-ins using]
To Artifact [dca423d859]:
- File tests/OFHTTPRequestTests.m — part of check-in [ffb4484d97] at 2012-03-12 14:04:59 on branch trunk — OFHTTPRequest: Add Connection: close to the request headers. (user: js, size: 2621) [annotate] [blame] [check-ins using] [more...]
︙ | |||
61 62 63 64 65 66 67 68 69 70 71 72 73 74 | 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | + + + | if (![[client readLine] isEqual: @"GET /foo HTTP/1.1"]) assert(0); if (![[client readLine] isEqual: [OFString stringWithFormat: @"Host: 127.0.0.1:%" @PRIu16, port]]) assert(0); if (![[client readLine] isEqual: @"Connection: close"]) assert(0); if (![[client readLine] hasPrefix: @"User-Agent:"]) assert(0); if (![[client readLine] isEqual: @""]) assert(0); |
︙ |