@@ -130,15 +130,17 @@ test_expect_success DATE_PARSER 'modification: feed last-modified' '
130
130
test_debug ' cat gitweb.headers'
131
131
132
132
test_expect_success DATE_PARSER ' modification: feed if-modified-since (modified)' '
133
- export HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
133
+ HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
134
+ export HTTP_IF_MODIFIED_SINCE &&
134
135
test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
135
136
gitweb_run "p=.git;a=atom;h=master" &&
136
137
grep "Status: 200 OK" gitweb.headers
137
138
'
138
139
test_debug ' cat gitweb.headers'
139
140
140
141
test_expect_success DATE_PARSER ' modification: feed if-modified-since (unmodified)' '
141
- export HTTP_IF_MODIFIED_SINCE="Thu, 7 Apr 2005 22:14:13 +0000" &&
142
+ HTTP_IF_MODIFIED_SINCE="Thu, 7 Apr 2005 22:14:13 +0000" &&
143
+ export HTTP_IF_MODIFIED_SINCE &&
142
144
test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
143
145
gitweb_run "p=.git;a=atom;h=master" &&
144
146
grep "Status: 304 Not Modified" gitweb.headers
@@ -153,15 +155,17 @@ test_expect_success DATE_PARSER 'modification: snapshot last-modified' '
153
155
test_debug ' cat gitweb.headers'
154
156
155
157
test_expect_success DATE_PARSER ' modification: snapshot if-modified-since (modified)' '
156
- export HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
158
+ HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
159
+ export HTTP_IF_MODIFIED_SINCE &&
157
160
test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
158
161
gitweb_run "p=.git;a=snapshot;h=master;sf=tgz" &&
159
162
grep "Status: 200 OK" gitweb.headers
160
163
'
161
164
test_debug ' cat gitweb.headers'
162
165
163
166
test_expect_success DATE_PARSER ' modification: snapshot if-modified-since (unmodified)' '
164
- export HTTP_IF_MODIFIED_SINCE="Thu, 7 Apr 2005 22:14:13 +0000" &&
167
+ HTTP_IF_MODIFIED_SINCE="Thu, 7 Apr 2005 22:14:13 +0000" &&
168
+ export HTTP_IF_MODIFIED_SINCE &&
165
169
test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
166
170
gitweb_run "p=.git;a=snapshot;h=master;sf=tgz" &&
167
171
grep "Status: 304 Not Modified" gitweb.headers
@@ -170,7 +174,8 @@ test_debug 'cat gitweb.headers'
170
174
171
175
test_expect_success DATE_PARSER ' modification: tree snapshot' '
172
176
ID=`git rev-parse --verify HEAD^{tree}` &&
173
- export HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
177
+ HTTP_IF_MODIFIED_SINCE="Wed, 6 Apr 2005 22:14:13 +0000" &&
178
+ export HTTP_IF_MODIFIED_SINCE &&
174
179
test_when_finished "unset HTTP_IF_MODIFIED_SINCE" &&
175
180
gitweb_run "p=.git;a=snapshot;h=$ID;sf=tgz" &&
176
181
grep "Status: 200 OK" gitweb.headers &&
0 commit comments