projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- use way less memory by not duplicating response headers and bodies
[m6w6/ext-http]
/
tests
/
HttpResponse_003.phpt
diff --git
a/tests/HttpResponse_003.phpt
b/tests/HttpResponse_003.phpt
index 4b5941cd815463d9548091a1b94564623a922d39..22f46749a1e3721e3a063b41f55f3366ed2bc394 100644
(file)
--- a/
tests/HttpResponse_003.phpt
+++ b/
tests/HttpResponse_003.phpt
@@
-3,9
+3,9
@@
HttpResponse - send gzipped file with caching headers
--SKIPIF--
<?php
include 'skip.inc';
--SKIPIF--
<?php
include 'skip.inc';
-check
ver
(5);
+check
min
(5);
checkcgi();
checkcgi();
-
checkext('zlib'
);
+
skipif(!http_support(HTTP_SUPPORT_ENCODINGS), "need zlib support"
);
?>
--ENV--
HTTP_ACCEPT_ENCODING=gzip
?>
--ENV--
HTTP_ACCEPT_ENCODING=gzip
@@
-19,11
+19,11
@@
HttpResponse::send();
?>
--EXPECTF--
X-Powered-By: PHP/%s
?>
--EXPECTF--
X-Powered-By: PHP/%s
-ETag: "%s"
-Cache-Control: public, must-revalidate, max_age=3600
+Cache-Control: public, must-revalidate, max-age=3600
Last-Modified: %s, %d %s 20%d %d:%d:%d GMT
Content-Type: %s
Accept-Ranges: bytes
Last-Modified: %s, %d %s 20%d %d:%d:%d GMT
Content-Type: %s
Accept-Ranges: bytes
+ETag: "%s"
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Encoding: gzip
Vary: Accept-Encoding