fix localhost link to opensearchdescription.xml

pull/1/head
reger 10 years ago
parent 29d1945c16
commit e5854a5cdb

@ -149,7 +149,7 @@ public class OpensearchResponseWriter implements QueryResponseWriter {
solitaireTag(writer, "opensearch:startIndex", Integer.toString(resHead.offset)); solitaireTag(writer, "opensearch:startIndex", Integer.toString(resHead.offset));
solitaireTag(writer, "opensearch:itemsPerPage", Integer.toString(resHead.rows)); solitaireTag(writer, "opensearch:itemsPerPage", Integer.toString(resHead.rows));
solitaireTag(writer, RSSMessage.Token.title.name(), this.title); solitaireTag(writer, RSSMessage.Token.title.name(), this.title);
writer.write("<atom:link rel=\"search\" href=\"http://localhost:8090/opensearchdescription.xml\" type=\"application/opensearchdescription+xml\"/>"); writer.write("<atom:link rel=\"search\" href=\"/opensearchdescription.xml\" type=\"application/opensearchdescription+xml\"/>");
solitaireTag(writer, "description", "Search Result"); solitaireTag(writer, "description", "Search Result");
//solitaireTag(writer, "link", ""); //solitaireTag(writer, "link", "");
//solitaireTag(writer, "image", ""); //solitaireTag(writer, "image", "");

Loading…
Cancel
Save