Fix double HTTP dump
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 18 Dec 2013 13:03:22 +0000 (14:03 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 18 Dec 2013 13:03:22 +0000 (14:03 +0100)
Bug introduced in YAZ 5.0.6.

src/http.c

index 96445ed..223f7b5 100644 (file)
@@ -553,7 +553,6 @@ static void dump_http_package(ODR o, const char *buf, size_t len)
         if (i == len)
         {
             o->op->stream_write(o, o->op->print, ODR_VISIBLESTRING, buf, i);
         if (i == len)
         {
             o->op->stream_write(o, o->op->print, ODR_VISIBLESTRING, buf, i);
-            odr_printf(o, "%.*s\n", i, buf);
             break;
         }
         else if (i >= limit)
             break;
         }
         else if (i >= limit)