view tests/test-webraw.out @ 4872:419a6f715c6a

Use wsgi.url_scheme instead of ad-hoc CGI checks. Instead of each place in hgweb_mod that needs to check for SSL or get the protocol scheme (http vs. https) doing it ad-hoc, make them just look at the wsgi.url_scheme which because of previous patches is now always set correctly.
author Wesley J. Landaker <wjl@icecavern.net>
date Thu, 12 Jul 2007 22:55:44 -0700
parents d75c68b55af8
children
line wrap: on
line source

200 Script output follows
content-type: text/plain
content-length: 157
content-disposition: filename=sometext.txt

This is just some random text
that will go inside the file and take a few lines.
It is very boring to read, but computers don't
care about things like that.
host - - [date] "GET /?f=f165dc289438;file=sometext.txt;style=raw HTTP/1.1" 200 -