]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts-solr: Reset XML parser when doing update requests.
authorTimo Sirainen <tss@iki.fi>
Mon, 1 Jun 2009 02:41:22 +0000 (22:41 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 1 Jun 2009 02:41:22 +0000 (22:41 -0400)
We don't really care about what the XML contains, we'll just verify that
it's valid input.

--HG--
branch : HEAD

src/plugins/fts-solr/solr-connection.c

index 8a61c7710795c8814f81dfd56d7348bfec224cd9..1cb58c1f77348a3e6e58e277c9896e05964ca848 100644 (file)
@@ -437,6 +437,7 @@ solr_connection_post_begin(struct solr_connection *conn)
                curl_easy_setopt(conn->curl, CURLOPT_HTTPHEADER,
                                 conn->headers_post);
                curl_easy_setopt(conn->curl, CURLOPT_POST, (long)1);
+               XML_ParserReset(conn->xml_parser, "UTF-8");
        }
        return post;
 }