openidec

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 92a5503800a845331e3b66f48b998937422449f8
parent 0b53d4c0d3e50252fe49a2a17730f3e2f67ddb18
Author: Peter Kosyh <p.kosyh@gmail.com>
Date:   Fri, 12 Feb 2021 16:47:38 +0300

revert xml

Diffstat:
Mii-node/web.go | 10++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/ii-node/web.go b/ii-node/web.go @@ -390,14 +390,20 @@ func www_query(ctx *WebContext, w http.ResponseWriter, r *http.Request, q ii.Que ctx.Topic = db.Name + " :: " + req fmt.Fprintf(w, `<?xml version="1.0" encoding="UTF-8"?> - <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <rss version="2.0" + xmlns:content="http://purl.org/rss/1.0/modules/content/" + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:media="http://search.yahoo.com/mrss/" + xmlns:atom="http://www.w3.org/2005/Atom" + xmlns:georss="http://www.georss.org/georss"> <channel> <title>%s</title> <link>%s/%s</link> <description> %s </description> - <language>ru</language>`, + <language>ru</language> +`, str_esc(ctx.Topic), ctx.www.Host, ctx.BasePath, str_esc(ctx.Topic)) for _, m := range ctx.Msg { fmt.Fprintf(w,