Hi, I am occasionally saw cache file without the Content-Length header. Wondering if this header should always be there? Looking through the code that reads cache file, it seems that cache file without Content-Length is expected, at least not a error.
But when the cache truncate code truncates a cache without the Content_length, the cache will be corrupted because the next time polipo read the file, it would have to make the size as the length. Is there a code path that will lead to a cache file to not having the Content-Length? I know the polipo won't have the content length until the last chunk if the content is chunk encoded. If there is no such code path possible, then I would guess the corrupted cache is because a unexpected crash. Should I change the polipo to ignore or destroy a cache file that don't have the Content-Length header? Best Regards, Ming ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Polipo-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/polipo-users
