Skip to content

Commit a3d6bc5

Browse files
committed
fixed wrong comment in README.md, change response at error (404 to 412)
1 parent 88a4aea commit a3d6bc5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,20 +177,20 @@ Sample configuration (Optional)
177177

178178
cache_purge_response_type json;
179179

180-
location / { //json
180+
location / { #json
181181
proxy_pass http://127.0.0.1:8000;
182182
proxy_cache tmpcache;
183183
proxy_cache_key $uri$is_args$args;
184184
}
185185

186-
location ~ /purge(/.*) { //xml
186+
location ~ /purge(/.*) { #xml
187187
allow 127.0.0.1;
188188
deny all;
189189
proxy_cache_purge tmpcache $1$is_args$args;
190190
cache_purge_response_type xml;
191191
}
192192

193-
location ~ /purge2(/.*) { // json
193+
location ~ /purge2(/.*) { # json
194194
allow 127.0.0.1;
195195
deny all;
196196
proxy_cache_purge tmpcache $1$is_args$args;
@@ -199,19 +199,19 @@ Sample configuration (Optional)
199199

200200
server {
201201

202-
location / { //text
202+
location / { #text
203203
proxy_pass http://127.0.0.1:8000;
204204
proxy_cache tmpcache;
205205
proxy_cache_key $uri$is_args$args;
206206
}
207207

208-
location ~ /purge(/.*) { //text
208+
location ~ /purge(/.*) { #text
209209
allow 127.0.0.1;
210210
deny all;
211211
proxy_cache_purge tmpcache $1$is_args$args;
212212
}
213213

214-
location ~ /purge2(/.*) { /html/
214+
location ~ /purge2(/.*) { #html
215215
allow 127.0.0.1;
216216
deny all;
217217
proxy_cache_purge tmpcache $1$is_args$args;

t/resptype1.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ qr/\[(warn|error|crit|alert|emerg)\]/
112112
--- config eval: $::config
113113
--- request
114114
PURGE /purge/proxy/passwd
115-
--- error_code: 404
115+
--- error_code: 412
116116
--- response_headers
117117
Content-Type: text/html
118-
--- response_body_like: 404 Not Found
118+
--- response_body_like: 412 Precondition Failed
119119
--- timeout: 10
120120
--- no_error_log eval
121121
qr/\[(warn|error|crit|alert|emerg)\]/

0 commit comments

Comments
 (0)