# HG changeset patch # User Dirkjan Ochtman # Date 1200995152 -3600 # Node ID b06c56f8fab7c21f961a26eaf81a565d3e3385d6 # Parent 15ef6b9c1f2f994024e752495943e737ad9ef5a4 hgweb: revert to showing file instead of offering for download diff -r 15ef6b9c1f2f -r b06c56f8fab7 mercurial/hgweb/request.py --- a/mercurial/hgweb/request.py Tue Jan 22 12:31:55 2008 +0100 +++ b/mercurial/hgweb/request.py Tue Jan 22 10:45:52 2008 +0100 @@ -87,7 +87,7 @@ headers = headers.items() headers.append(('Content-type', type)) if filename: - headers.append(('Content-disposition', 'attachment; filename=%s' % + headers.append(('Content-disposition', 'inline; filename=%s' % filename)) if length: headers.append(('Content-length', str(length))) diff -r 15ef6b9c1f2f -r b06c56f8fab7 tests/test-webraw.out --- a/tests/test-webraw.out Tue Jan 22 12:31:55 2008 +0100 +++ b/tests/test-webraw.out Tue Jan 22 10:45:52 2008 +0100 @@ -1,7 +1,7 @@ 200 Script output follows content-type: text/plain content-length: 157 -content-disposition: attachment; filename=sometext.txt +content-disposition: inline; filename=sometext.txt This is just some random text that will go inside the file and take a few lines.