From: Adam Dickmeiss Date: Sat, 5 Oct 2013 14:31:33 +0000 (+0200) Subject: Add test for blanks in URL path X-Git-Tag: v5.0.2~11 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=13ac77e545b5d7e8b5ecb053d0aaa321ce12e487;p=yaz-moved-to-github.git Add test for blanks in URL path --- diff --git a/test/test_solr.c b/test/test_solr.c index 98d06e8..6ea884c 100644 --- a/test/test_solr.c +++ b/test/test_solr.c @@ -348,6 +348,20 @@ void tst_yaz_700(void) r = z_GDU(odr, &gdu_req, 0, 0); YAZ_CHECK(r); + if (r) + { + int len; + char *buf = odr_getbuf(odr, &len, 0); + ODR decode = odr_createmem(ODR_DECODE); + YAZ_CHECK(buf); + if (buf) + { + odr_setbuf(decode, buf, len, 0); + r = z_GDU(decode, &gdu_req, 0, 0); + YAZ_CHECK(r); + } + odr_destroy(decode); + } odr_destroy(odr); }