Re: Code updates
"Alex Kramarov" <[email protected]>
| Newsgroups | gmane.network.tux |
|---|---|
| Message-ID | <000801c28a9f$a1ee3010$0101c80a@home> |
----- Original Message ----- From: "Miles Elam" <[email protected]> To: <[email protected]> Sent: Wednesday, November 13, 2002 12:48 AM Subject: Code updates > Anyone have a URL for a code patch fixing the gzip file length bug? I > would really like to be able to use gzipped HTML and CSS files to reduce > bandwidth usage. i believe that there isn't one, but you are welcome to try - should be easy > Also, I want to have the functionality in tux to do some very simple > client detection for content delivery. Basically it boils down to an > array of strings: > > "MSIE 6" "index.xml" > "Nokia" "index.wml" > "UP" "index.wml" > "Wapalizer" "index.wml" > "" "index.html" > > So instead of always just serving index.html at a trailing slash if > available, it would return the content type most appropriate for the > client based on a simple substring match; First match wins the prize. > It seems to me that this wouldn't introduce a noticeable amount of > overhead to the server compared to the flexibiity. > > I am not familiar with the codebase. Where would be the best place to > start? if i remember correctly, both of the changes will have to start at http_proto.c Alex.