diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2009-01-02 13:49:30 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-01-10 17:43:02 -0800 |
commit | ae35785e3a205cea04d228b00461f4906548fcc3 (patch) | |
tree | 140be0047b5a6643cc767baacdb91714b4d61629 /gitweb | |
parent | fb098a942b925296e0e86b6935a4fdda872e2f99 (diff) | |
download | git-ae35785e3a205cea04d228b00461f4906548fcc3.tar.gz git-ae35785e3a205cea04d228b00461f4906548fcc3.tar.xz |
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>
Diffstat (limited to 'gitweb')
-rwxr-xr-x | gitweb/gitweb.perl | 6 |
1 files changed, 5 insertions, 1 deletions
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 <<XML; <?xml version="1.0" encoding="utf-8"?> <opml version="1.0"> |