diff --git a/mercurial/hgweb/request.py b/mercurial/hgweb/request.py --- a/mercurial/hgweb/request.py +++ b/mercurial/hgweb/request.py @@ -87,7 +87,7 @@ class wsgirequest(object): 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 --git a/tests/test-webraw.out b/tests/test-webraw.out --- a/tests/test-webraw.out +++ b/tests/test-webraw.out @@ -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.