comparison expect-100-continue.t @ 55:2020bf9c75ce

Tests: 100-continue was fixed in 0.7.29, remove TODO.
author Maxim Dounin <mdounin@mdounin.ru>
date Fri, 09 Jan 2009 04:05:52 +0300
parents c8a816c678e1
children 53eff3a83886
comparison
equal deleted inserted replaced
54:ec7903def1bb 55:2020bf9c75ce
52 52
53 ############################################################################### 53 ###############################################################################
54 54
55 like(http_100_request('/', '1.1'), qr/100/, 'expect 100 continue'); 55 like(http_100_request('/', '1.1'), qr/100/, 'expect 100 continue');
56 56
57 TODO: {
58 local $TODO = 'patch under review';
59
60 # From RFC 2616, 8.2.3 Use of the 100 (Continue) Status: 57 # From RFC 2616, 8.2.3 Use of the 100 (Continue) Status:
61 # 58 #
62 # - An origin server SHOULD NOT send a 100 (Continue) response if 59 # - An origin server SHOULD NOT send a 100 (Continue) response if
63 # the request message does not include an Expect request-header 60 # the request message does not include an Expect request-header
64 # field with the "100-continue" expectation, and MUST NOT send a 61 # field with the "100-continue" expectation, and MUST NOT send a
65 # 100 (Continue) response if such a request comes from an HTTP/1.0 62 # 100 (Continue) response if such a request comes from an HTTP/1.0
66 # (or earlier) client. 63 # (or earlier) client.
67 64
68 unlike(http_100_request('/', '1.0'), qr/100/, 'no 100 continue via http 1.0'); 65 unlike(http_100_request('/', '1.0'), qr/100/, 'no 100 continue via http 1.0');
69
70 }
71 66
72 ############################################################################### 67 ###############################################################################
73 68
74 sub http_100_request { 69 sub http_100_request {
75 my ($url, $version) = @_; 70 my ($url, $version) = @_;