X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fseshigh.c;h=c88c7e3aa52d498fa78de876165b0f23867a69e1;hp=c7448085ae38cc22f59e3a2a94c5ad5b284d75a3;hb=6ee0d7c0404834a0a59547c3bd7e2686f838ce37;hpb=044e617fc468bfce45f39e66fe8d34b99654eba2 diff --git a/src/seshigh.c b/src/seshigh.c index c744808..c88c7e3 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -688,6 +688,7 @@ static int retrieve_fetch(association *assoc, bend_fetch_rr *rr) if (r) { rr->errcode = YAZ_BIB1_SYSTEM_ERROR_IN_PRESENTING_RECORDS; + rr->surrogate_flag = 1; if (details) rr->errstring = odr_strdup(rr->stream, details); } @@ -1933,11 +1934,6 @@ static void process_http_request(association *assoc, request *req) hres->code = http_code; strcpy(ctype, "text/xml"); - if (charset && strlen(charset) < sizeof(ctype)-30) - { - strcat(ctype, "; charset="); - strcat(ctype, charset); - } z_HTTP_header_add(o, &hres->headers, "Content-Type", ctype); } else