From: Giuseppe Bilotta Date: Fri, 2 Jan 2009 12:49:30 +0000 (+0100) Subject: gitweb: suggest name for OPML view X-Git-Url: https://git.ladys.computer/Gitweb/commitdiff_plain/7f15815175d5452aae9d7e5d2166c2e8371894a9552061be24add4c8c79743ac 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.perl b/gitweb.perl index c579eff..a1b1c36 100755 --- a/gitweb.perl +++ b/gitweb.perl @@ -6223,7 +6223,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 <