mercurial/hgweb/request.py
changeset 6136 acfb9fa494e2
parent 5993 948a41e77902
child 6137 1c0e7afe824a
--- a/mercurial/hgweb/request.py	Sat Feb 16 13:34:11 2008 +0100
+++ b/mercurial/hgweb/request.py	Sat Feb 16 17:51:30 2008 +0100
@@ -85,8 +85,8 @@
         if type is not None:
             headers.append(('Content-Type', type))
         if filename:
-            headers.append(('Content-Disposition', 'inline; filename=%s' %
-                            filename))
+            headers.append(('Content-Disposition',
+                            'inline; filename=%s' % filename.split('/')[-1]))
         if length:
             headers.append(('Content-Length', str(length)))
         self.header(headers)