提交 ae35785e 编写于 作者: G Giuseppe Bilotta 提交者: Junio C Hamano

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: NGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Acked-by: NJakub Narebski <jnareb@gmail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 fb098a94
...@@ -6122,7 +6122,11 @@ sub git_atom { ...@@ -6122,7 +6122,11 @@ sub git_atom {
sub git_opml { sub git_opml {
my @list = git_get_projects_list(); 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; print <<XML;
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<opml version="1.0"> <opml version="1.0">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册