version 2.22, 1996/01/31 22:39:54
|
version 2.23, 1996/02/04 19:54:13
|
Line 148 PRIVATE int HTGuess_flush (HTStream * me
|
Line 148 PRIVATE int HTGuess_flush (HTStream * me
|
CONTENT_TYPE("application/octet-stream"); |
CONTENT_TYPE("application/octet-stream"); |
} |
} |
|
|
if (!me->anchor->content_type) |
if (me->anchor->content_type == WWW_UNKNOWN) |
CONTENT_TYPE("application/octet-stream"); |
CONTENT_TYPE("application/octet-stream"); |
if (!me->anchor->content_encoding) |
if (!me->anchor->content_encoding) |
CONTENT_ENCODING("binary"); |
CONTENT_ENCODING("binary"); |
Line 164 PRIVATE int HTGuess_flush (HTStream * me
|
Line 164 PRIVATE int HTGuess_flush (HTStream * me
|
TTYPrint(TDEST, "HTGuess..... Can't convert media type\n"); |
TTYPrint(TDEST, "HTGuess..... Can't convert media type\n"); |
me->target = HTErrorStream(); |
me->target = HTErrorStream(); |
} |
} |
|
me->transparent = YES; |
} |
} |
return PUT_BLOCK(me->buffer, me->cnt); |
return PUT_BLOCK(me->buffer, me->cnt); |
} |
} |
Line 196 PRIVATE int HTGuess_put_block (HTStream
|
Line 197 PRIVATE int HTGuess_put_block (HTStream
|
if (me->cnt >= SAMPLE_SIZE) { |
if (me->cnt >= SAMPLE_SIZE) { |
if ((status = HTGuess_flush(me)) != HT_OK) |
if ((status = HTGuess_flush(me)) != HT_OK) |
return status; |
return status; |
else |
|
me->transparent = YES; |
|
} |
} |
} |
} |
} |
} |