#! /bin/sh /usr/share/dpatch/dpatch-run
## 70_cache_control_typo.dpatch by Sebastien COURET <10function@neuf.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: fixes a typo in tracd HTTP code

@DPATCH@

--- orig/trac/web/api.py     2009-12-16 21:39:06.000000000 +0000
+++ patch/trac/web/api.py     2009-12-16 21:51:20.000000000 +0000
@@ -321,7 +321,7 @@
         self.send_header('Content-Type', 'text/plain')
         self.send_header('Content-Length', 0)
         self.send_header('Pragma', 'no-cache')
-        self.send_header('Cache-control', 'no-cache')
+        self.send_header('Cache-Control', 'no-cache')
         self.send_header('Expires', 'Fri, 01 Jan 1999 00:00:00 GMT')
         self.end_headers()

@@ -350,7 +350,7 @@

     def send(self, content, content_type='text/html', status=200):
         self.send_response(status)
-        self.send_header('Cache-control', 'must-revalidate')
+        self.send_header('Cache-Control', 'must-revalidate')
         self.send_header('Content-Type', content_type + ';charset=utf-8')
         self.send_header('Content-Length', len(content))
         self.end_headers()
@@ -386,7 +386,7 @@

         self.send_response(status)
         self._outheaders = []
-        self.send_header('Cache-control', 'must-revalidate')
+        self.send_header('Cache-Control', 'must-revalidate')
         self.send_header('Expires', 'Fri, 01 Jan 1999 00:00:00 GMT')
         self.send_header('Content-Type', content_type + ';charset=utf-8')
         self.send_header('Content-Length', len(data))
