From: Giuseppe Bilotta Date: Fri, 2 Jan 2009 12:49:30 +0000 (+0100) Subject: gitweb: suggest name for OPML view X-Git-Tag: v1.6.2-rc0~133^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ae35785e3a205cea04d228b00461f4906548fcc3;p=git.git 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 Acked-by: Jakub Narebski Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index b16400193..995bc1a6a 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -6122,7 +6122,11 @@ sub git_atom { sub git_opml { my @list = git_get_projects_list(); - print $cgi->header(-type => 'text/xml', -charset => 'utf-8'); + print $cgi->header( + -type => 'text/xml', + -charset => 'utf-8', + -content_disposition => 'inline; filename="opml.xml"'); + print <