gitweb: suggest name for OPML view
Suggest opml.xml as name for OPML view by providing the appropriate header, consistently with similar usage in project_index view. Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com> Acked-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Giuseppe Bilotta committed
Jan 2, 2009 at 13:49 UTC
ae35785e3a205cea04d228b00461f4906548fcc3
1 file changed
+5
-1
gitweb/gitweb.perl
+5
-1
@@ -6122,7 +6122,11 @@ sub git_atom {
6122
sub git_opml {
6123
my @list = git_get_projects_list();
6124
6125
- print $cgi->header(-type => 'text/xml', -charset => 'utf-8');
6125
+ print $cgi->header(
6126
+ -type => 'text/xml',
6127
+ -charset => 'utf-8',
6128
+ -content_disposition => 'inline; filename="opml.xml"');
6129
+
6130
print <<XML;
6131
<?xml version="1.0" encoding="utf-8"?>
6132
<opml version="1.0">