X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fhttp.c;h=daefeb876dded183fe504de0fc8cd7c8e5f91275;hb=d391d478f359e4792f6afc75d5732c1404fd9f28;hp=456d69b8cedabc8f8e3d5a7025a20dbcfcaa4ece;hpb=6aed90d2cb69a71e6510475982d56933fb401606;p=pazpar2-moved-to-github.git diff --git a/src/http.c b/src/http.c index 456d69b..daefeb8 100644 --- a/src/http.c +++ b/src/http.c @@ -70,6 +70,7 @@ typedef int socklen_t; #include "ppmutex.h" #include "session.h" #include "http.h" +#include "parameters.h" #define MAX_HTTP_HEADER 4096 @@ -649,6 +650,12 @@ static struct http_buf *http_serialize_response(struct http_channel *c, if (r->payload) wrbuf_puts(c->wrbuf, r->payload); + if (global_parameters.dump_records > 1) + { + FILE *lf = yaz_log_file(); + yaz_log(YLOG_LOG, "Response:"); + fwrite(wrbuf_buf(c->wrbuf), 1, wrbuf_len(c->wrbuf), lf); + } return http_buf_bywrbuf(c->http_server, c->wrbuf); }