Enable CURLOPT_ENCODING for Inventory caps, which uses the LLURLRequest code path
Review Request #242 - Created March 28, 2011 and submitted
Stone Linden | Reviewers | ||
viewer | |||
vwr-25376 | oz.linden, joshua.linden, brad.linden | ||
None | viewer-development |
Enable Accept-Encoding: deflate, gzip in libcurl via setopt CURLOPT_ENCODING. I'm approaching this for Inventory, but it would apply to any HTTP request that goes through the LLURLRequest code path (vs. the LLCurl code path, which already does this).
Inventory loads, and I see the encoding options coming through on the backend apache logs.
Posted (March 28, 2011, 9:12 p.m.)
Before shipping, review the exploit history around CURLOPT_ENCODING. There is a known buffer overflow exploit, I believe in pre-7.20 releases but that should be checked first for applicability.
Looks good.
Review request changed
Updated (March 31, 2011, 7:32 a.m.)
-
- added vwr-25376
adding the issue reference in the Bugs field
Looks good. Empty-string ("") is a signal to curl to send an Accept-Encoding header with any type it understands and can transparently decode on receipt. On the one hand, it might be nice to define a constant empty string so that this behavior is more obvious, but on the other using literal empty strings will match what people might search for.
Other reviews