~ubuntu-branches/ubuntu/saucy/varnish/saucy

« back to all changes in this revision

Viewing changes to bin/varnishtest/tests/r00789.vtc

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-03-21 10:16:07 UTC
  • mfrom: (24.1.2 experimental)
  • Revision ID: james.westby@ubuntu.com-20110321101607-528fzl583fqanas5
Tags: 2.1.5-2
ReleaseĀ forĀ unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# $Id$
 
2
 
 
3
test "pass should not filter Content-Range header"
 
4
 
 
5
server s1 {
 
6
        rxreq
 
7
        expect req.http.range == "bytes=1-1"
 
8
        txresp -status 206 -hdr "Content-Range: bytes 1-1/20" -body "F"
 
9
 
 
10
} -start
 
11
 
 
12
 
 
13
varnish v1 -vcl+backend { sub vcl_recv {return(pass);} } -start
 
14
 
 
15
client c1 {
 
16
        txreq -hdr "Range: bytes=1-1"
 
17
        rxresp
 
18
        expect resp.status == 206
 
19
        expect resp.bodylen == 1
 
20
        expect resp.http.content-range == "bytes 1-1/20"
 
21
} -run