~ubuntu-branches/ubuntu/wily/prewikka/wily

« back to all changes in this revision

Viewing changes to prewikka/Request.py

  • Committer: Bazaar Package Importer
  • Author(s): Pierre Chifflier
  • Date: 2008-07-02 16:49:06 UTC
  • mfrom: (6.1.2 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080702164906-q2bkfn6i40hd95tt
Tags: 0.9.14-2
* Update watch file
* Bump Standards version to 3.8.0 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
 
21
21
import sys
22
 
import os, os.path
23
 
 
 
22
import os, os.path, time
24
23
import copy
25
 
 
26
24
import Cookie
27
25
 
28
26
 
33
31
        self.arguments = { }
34
32
        self.input_headers = { }
35
33
        self.output_headers = [ ("Content-type", "text/html"),
36
 
                                ("Pragma", "no-cache"),
37
 
                                ("Cache-control", "no-cache"),
38
 
                                ("Expires", "Fri, 01 Jan 1999 00:00:00 GMT") ]
 
34
                                ("Last-Modified", time.strftime("%a, %d %b %Y %H:%M:%S GMT", time.gmtime())),
 
35
                                ("Expires", "Fri, 01 Jan 1999 00:00:00 GMT"),
 
36
                                ("Cache-control", "no-store, no-cache, must-revalidate"),
 
37
                                ("Cache-control", "post-check=0, pre-check=0"),
 
38
                                ("Pragma", "no-cache") ]
39
39
 
40
40
        cookie = Cookie.SimpleCookie(self.getCookieString())
41
41
        self.input_cookie = { }