X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_query_rewrite.cpp;h=e6a21b0e466f588f5309e2270e64e4cf5f843409;hb=bef823971eb13cedea9a6d26a3fd782514cfeb2f;hp=6e77295d1687c732ec0a4e5395d81dd88b655a2a;hpb=73f37c91c144b070020df2f27472c09b62367acf;p=metaproxy-moved-to-github.git diff --git a/src/filter_query_rewrite.cpp b/src/filter_query_rewrite.cpp index 6e77295..e6a21b0 100644 --- a/src/filter_query_rewrite.cpp +++ b/src/filter_query_rewrite.cpp @@ -1,5 +1,5 @@ /* This file is part of Metaproxy. - Copyright (C) 2005-2012 Index Data + Copyright (C) 2005-2013 Index Data Metaproxy is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -125,7 +125,7 @@ void yf::QueryRewrite::Rep::process(mp::Package &package) const xmlFreeDoc(doc_input); } } - if (charset_to.length() && charset_from.length() && + if (!error_code && charset_to.length() && charset_from.length() && (req->query->which == Z_Query_type_1 || req->query->which == Z_Query_type_101)) {