Mercurial > hg > nginx-tests
comparison dav.t @ 176:847811d5192c
Tests: 201 replies fixed in 1.1.5, remove TODO.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 01 Nov 2011 21:03:53 +0300 |
parents | 81559ffe5b45 |
children | 6a0d934950bc |
comparison
equal
deleted
inserted
replaced
175:b5352cabdadb | 176:847811d5192c |
---|---|
99 like($r, qr/201 Created.*(Content-Length|\x0d\0a0\x0d\x0a)/ms, | 99 like($r, qr/201 Created.*(Content-Length|\x0d\0a0\x0d\x0a)/ms, |
100 'put file extra data'); | 100 'put file extra data'); |
101 is(-s $t->testdir() . '/file', 10, | 101 is(-s $t->testdir() . '/file', 10, |
102 'put file extra data size'); | 102 'put file extra data size'); |
103 | 103 |
104 TODO: { | |
105 local $TODO = 'broken in 0.8.32'; | |
106 | |
107 # 201 replies contain body, response should indicate it's empty | 104 # 201 replies contain body, response should indicate it's empty |
108 # before 0.8.32 chunked was explicitly disabled for 201 replies so | |
109 # connection was just closed (which isn't perfect but worked) | |
110 | 105 |
111 $r = http(<<EOF); | 106 $r = http(<<EOF); |
112 MKCOL /test/ HTTP/1.1 | 107 MKCOL /test/ HTTP/1.1 |
113 Host: localhost | 108 Host: localhost |
114 Connection: close | 109 Connection: close |
134 Connection: close | 129 Connection: close |
135 | 130 |
136 EOF | 131 EOF |
137 | 132 |
138 like($r, qr/201.*(Content-Length|\x0d\0a0\x0d\x0a)/ms, 'move dir'); | 133 like($r, qr/201.*(Content-Length|\x0d\0a0\x0d\x0a)/ms, 'move dir'); |
139 } | |
140 | 134 |
141 ############################################################################### | 135 ############################################################################### |