Revision 64a0db49
Von martin vor mehr als 14 Jahren hinzugefügt
src/sio/syncio_http.c | ||
---|---|---|
return rv;
|
||
}
|
||
if (xio->currentReadChunkSize==0) {
|
||
int rv2;
|
||
GWEN_BUFFER *tbuf;
|
||
|
||
/* all chunks finished, read trailing CR/LF */
|
||
tbuf=GWEN_Buffer_new(0, 256, 0, 1);
|
||
rv2=GWEN_SyncIo_Http_ReadLine(sio, tbuf);
|
||
if (rv2<0) {
|
||
DBG_INFO(GWEN_LOGDOMAIN, "here (%d)", rv2);
|
||
GWEN_Buffer_free(tbuf);
|
||
return rv2;
|
||
}
|
||
GWEN_Buffer_free(tbuf);
|
||
|
||
DBG_DEBUG(GWEN_LOGDOMAIN, "Chunks finished.");
|
||
|
||
/* chunksize is 0, body ended */
|
||
GWEN_SyncIo_Http_SetReadIdle(sio);
|
||
return 0;
|
Auch abrufbar als: Unified diff
Applied a patch provided by Thomas Baumgart fixing handling of chunked HTTP.
git-svn-id: https://devel.aqbanking.de/svn/gwenhywfar/trunk@2031 70169cfe-8b10-0410-8925-dcb4b91034d8