From 82ca4cf8ce421cbec87667f6c22b3e7165443016 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:10 +0200 Subject: added InputStream.ready The flag "ready" indicates whether the input stream is ready and it has parsed all meta data. Previously, it was impossible for decodeStart() to see the content type of HTTP input streams, because at that time, the HTTP response wasn't parsed yet. --- src/inputStream.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/inputStream.c') diff --git a/src/inputStream.c b/src/inputStream.c index 9495beb8a..7686fed48 100644 --- a/src/inputStream.c +++ b/src/inputStream.c @@ -31,6 +31,7 @@ void initInputStream(void) int openInputStream(InputStream * inStream, char *url) { + inStream->ready = 0; inStream->offset = 0; inStream->size = 0; inStream->error = 0; -- cgit v1.2.3