projects
/
m6w6
/
ext-http
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
history
|
raw
|
HEAD
- fix crash if *val == NULL
[m6w6/ext-http]
/
tests
/
send_ifrange_001.phpt
1
--TEST--
2
http_send() If-Range
3
--SKIPIF--
4
<?php
5
include 'skip.inc';
6
checkcgi();
7
?>
8
--FILE--
9
<?php
10
$_SERVER['HTTP_RANGE'] = 'bytes=0-1';
11
$_SERVER['HTTP_IF_RANGE'] = '"abc"';
12
http_cache_etag('abc');
13
http_send_file(__FILE__);
14
?>
15
--EXPECTF--
16
Status: 206
17
X-Powered-By: %s
18
Cache-Control: private, must-revalidate, max-age=0
19
ETag: "abc"
20
Accept-Ranges: bytes
21
Content-Range: bytes 0-1/%d
22
Content-Length: 2
23
Content-type: text/html
24
25
<?