зеркало из https://github.com/microsoft/git.git
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>
This commit is contained in:
Родитель
fb098a942b
Коммит
ae35785e3a
|
@ -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">
|
||||
|
|
Загрузка…
Ссылка в новой задаче