Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.466 kb
from base import *
class Test (TestBase):
def __init__ (self):
TestBase.__init__ (self, __file__)
self.name = "Content-Type header"
self.request = "GET /content_type1/file.jpg HTTP/1.0\r\n"
self.expected_error = 200
self.excepted_content = ["Content-Type", "image/jpeg"]
def Prepare (self, www):
d = self.Mkdir (www, "content_type1")
self.WriteFile (d, "file.jpg", 0444, " ")
Jump to Line
Something went wrong with that request. Please try again.