X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ffilter_http_rewrite.cpp;h=58243bfb2aae694cad56f1a7bf84c6ced463da96;hb=2ee83c18eef23c98fd4e97d581401be193fdf41f;hp=6cdc57c5f6eecc9c4b169209cdd4f6227f40c960;hpb=96a9d0598df0722dc31117fd4559bb4b23a2225e;p=metaproxy-moved-to-github.git diff --git a/src/filter_http_rewrite.cpp b/src/filter_http_rewrite.cpp index 6cdc57c..58243bf 100644 --- a/src/filter_http_rewrite.cpp +++ b/src/filter_http_rewrite.cpp @@ -275,6 +275,10 @@ void yf::HttpRewrite::Phase::rewrite_body( { if (*content_len == 0) return; + if (!content_type) { + yaz_log(YLOG_LOG, "rewrite_body: null content_type, can not rewrite"); + return; + } std::list::const_iterator cit = content_list.begin(); for (; cit != content_list.end(); cit++) {