Skip to content

Commit

Permalink
gitweb: suggest name for OPML view
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Giuseppe Bilotta authored and Junio C Hamano committed Jan 11, 2009
1 parent fb098a9 commit ae35785
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gitweb/gitweb.perl
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<XML;
<?xml version="1.0" encoding="utf-8"?>
<opml version="1.0">
Expand Down

0 comments on commit ae35785

Please sign in to comment.