projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- improve response performance
[m6w6/ext-http]
/
tests
/
HttpResponse_004.phpt
diff --git
a/tests/HttpResponse_004.phpt
b/tests/HttpResponse_004.phpt
index 4e6d30c2d77198500cff073074918110ebba4770..ffe26c90671411f4d53d9864ab1644a28a6d7fd4 100644
(file)
--- a/
tests/HttpResponse_004.phpt
+++ b/
tests/HttpResponse_004.phpt
@@
-7,10
+7,11
@@
checkcgi();
checkmin(5.1);
skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib support");
?>
checkmin(5.1);
skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib support");
?>
+--ENV--
+HTTP_IF_NONE_MATCH="900150983cd24fb0d6963f7d28e17f72"
+HTTP_ACCEPT_ENCODING=gzip
--FILE--
<?php
--FILE--
<?php
-$_SERVER["HTTP_IF_NONE_MATCH"] = '"900150983cd24fb0d6963f7d28e17f72"';
-$_SERVER["HTTP_ACCEPT_ENCODING"] = "gzip";
HttpResponse::setGzip(true);
HttpResponse::setCache(true);
HttpResponse::setCacheControl('public', 3600);
HttpResponse::setGzip(true);
HttpResponse::setCache(true);
HttpResponse::setCacheControl('public', 3600);