projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b1419c6
)
Fix ODR pritn of HTTP requests
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 30 Dec 2003 15:18:53 +0000
(15:18 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 30 Dec 2003 15:18:53 +0000
(15:18 +0000)
src/zgdu.c
patch
|
blob
|
history
diff --git
a/src/zgdu.c
b/src/zgdu.c
index
fa92153
..
692ccf0
100644
(file)
--- a/
src/zgdu.c
+++ b/
src/zgdu.c
@@
-2,7
+2,7
@@
* Copyright (c) 2002-2003, Index Data.
* See the file LICENSE for details.
*
* Copyright (c) 2002-2003, Index Data.
* See the file LICENSE for details.
*
- * $Id: zgdu.c,v 1.3 2003-12-30 00:29:53 adam Exp $
+ * $Id: zgdu.c,v 1.4 2003-12-30 15:18:53 adam Exp $
*/
#include <yaz/odr.h>
*/
#include <yaz/odr.h>
@@
-353,7
+353,9
@@
int z_GDU (ODR o, Z_GDU **p, int opt, const char *name)
(*p)->u.HTTP_Request->content_len);
if (o->direction == ODR_PRINT)
{
(*p)->u.HTTP_Request->content_len);
if (o->direction == ODR_PRINT)
{
- fprintf(o->print, "-- HTTP request:\n%.*s\n", o->top, o->buf);
+ fprintf(o->print, "-- HTTP request:\n%.*s\n", o->top - top0,
+ o->buf + top0);
+ fprintf(o->print, "-- \n");
}
break;
case Z_GDU_Z3950:
}
break;
case Z_GDU_Z3950: