Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 15 lines (11 sloc) 0.466 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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, " ")

Something went wrong with that request. Please try again.