]> Lady’s Gitweb - Gitweb/commitdiff
gitweb: suggest name for OPML view
authorGiuseppe Bilotta <redacted>
Fri, 2 Jan 2009 12:49:30 +0000 (13:49 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:50:38 +0000 (00:50 -0400)
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 <redacted>
Acked-by: Jakub Narebski <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl

index c579eff8a3782e8663b43c43c62af47f72e0350c6cb848c213cbf5db5c9dd719..a1b1c3696854c91bb8d18e7cbaf1205728378535097ccac57f67f87b25742a8d 100755 (executable)
@@ -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 <<XML;
 <?xml version="1.0" encoding="utf-8"?>
 <opml version="1.0">
This page took 0.384981 seconds and 4 git commands to generate.