X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fseshigh.c;h=372f174011bd90825801666efc5f77547b827656;hb=dedca4515134eb33b9e09f824a4c5dc976b36820;hp=18ebe90389f3a76cc42967bfacf8de333b590f72;hpb=b86de9339d429e755e5446fda4051f3685f67fda;p=yaz-moved-to-github.git diff --git a/src/seshigh.c b/src/seshigh.c index 18ebe90..372f174 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: seshigh.c,v 1.71 2006-03-16 08:55:28 adam Exp $ + * $Id: seshigh.c,v 1.73 2006-03-26 21:00:09 marc Exp $ */ /** * \file seshigh.c @@ -517,8 +517,9 @@ static int srw_bend_init(association *assoc, Z_SRW_diagnostic **d, int *num) assoc->backend = binitres->handle; if (binitres->errcode) { + int srw_code = yaz_diag_bib1_to_srw(binitres->errcode); assoc->state = ASSOC_DEAD; - yaz_add_srw_diagnostic(assoc->encode, d, num, binitres->errcode, + yaz_add_srw_diagnostic(assoc->encode, d, num, srw_code, binitres->errstring); return 0; } @@ -1462,6 +1463,7 @@ static void process_http_request(association *assoc, request *req) yaz_mime_types_add(types, "html", "text/html"); yaz_mime_types_add(types, "htm", "text/html"); yaz_mime_types_add(types, "txt", "text/plain"); + yaz_mime_types_add(types, "js", "application/x-javascript"); yaz_mime_types_add(types, "gif", "image/gif"); yaz_mime_types_add(types, "png", "image/png"); @@ -2071,7 +2073,7 @@ static Z_APDU *process_initRequest(association *assoc, request *reqb) assoc->init->implementation_name, odr_prepend(assoc->encode, "GFS", resp->implementationName)); - version = odr_strdup(assoc->encode, "$Revision: 1.71 $"); + version = odr_strdup(assoc->encode, "$Revision: 1.73 $"); if (strlen(version) > 10) /* check for unexpanded CVS strings */ version[strlen(version)-2] = '\0'; resp->implementationVersion = odr_prepend(assoc->encode,