]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
plugins: fts-solr: solr-connection - Remove useless XML_ParserReset() calls.
authorStephan Bosch <stephan.bosch@open-xchange.com>
Tue, 8 Oct 2019 16:56:58 +0000 (18:56 +0200)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Thu, 9 Jan 2020 12:52:43 +0000 (12:52 +0000)
src/plugins/fts-solr/solr-connection.c

index a625c45bc741b999f13e666095865af43775ac13..fe309a78855fcf1d5269e967866649dcade1ea11 100644 (file)
@@ -279,7 +279,6 @@ solr_connection_post_begin(struct solr_connection *conn)
        post = i_new(struct solr_connection_post, 1);
        post->conn = conn;
        post->http_req = solr_connection_post_request(post);
-       XML_ParserReset(conn->xml_parser, "UTF-8");
        return post;
 }
 
@@ -339,8 +338,6 @@ int solr_connection_post(struct solr_connection *conn, const char *cmd)
        i_stream_unref(&post_payload);
        http_client_request_submit(post.http_req);
 
-       XML_ParserReset(conn->xml_parser, "UTF-8");
-
        post.request_status = 0;
        http_client_wait(solr_http_client);