[PATCH] gitweb: suggest name for OPML view
- From
Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
- Date
- Jan 2, 2009, 12:49 UTC
- Message-ID
- <1230900570-25324-1-git-send-email-giuseppe.bilotta@gmail.com>
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> --- gitweb/gitweb.perl | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index b164001..995bc1a 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">
-- 1.5.6.5