summaryrefslogtreecommitdiff
path: root/src/opensearch/opensearchwriter.cpp
diff options
context:
space:
mode:
authormegabigbug <megabigbug@yahoo.fr>2010-10-17 16:23:39 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-10-30 11:43:22 +0200
commitee71d4a5cef8544bff1c57cc7b81870982d55c93 (patch)
tree286f4d0701fa1af6c2c3fd2e71ae9120197cd39e /src/opensearch/opensearchwriter.cpp
parentremove warnings (diff)
downloadrekonq-ee71d4a5cef8544bff1c57cc7b81870982d55c93.tar.xz
adapt opensearch reader and writer for xml suggestions
Diffstat (limited to 'src/opensearch/opensearchwriter.cpp')
-rw-r--r--src/opensearch/opensearchwriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opensearch/opensearchwriter.cpp b/src/opensearch/opensearchwriter.cpp
index 81ce022c..00a2f0cd 100644
--- a/src/opensearch/opensearchwriter.cpp
+++ b/src/opensearch/opensearchwriter.cpp
@@ -105,7 +105,7 @@ void OpenSearchWriter::write(OpenSearchEngine *engine)
{
writeStartElement(QL1S("Url"));
writeAttribute(QL1S("method"), QL1S("get"));
- writeAttribute(QL1S("type"), QL1S("application/x-suggestions+json"));
+ writeAttribute(QL1S("type"), engine->type());
writeAttribute(QL1S("template"), engine->suggestionsUrlTemplate());
if (!engine->suggestionsParameters().empty())