Allow getAutoUncompressionCodec() to have 1 terminal decoder
authorStella Lau <laus@fb.com>
Fri, 15 Sep 2017 17:13:08 +0000 (10:13 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 15 Sep 2017 17:21:54 +0000 (10:21 -0700)
commit481365efcd19b729e41400f442bcd19cb9ea1323
tree3f6e9b4f826563a42312a566ef2c651dae804b67
parent610c11630a3cbccdc2be0a91b5a6c2f934af3f55
Allow getAutoUncompressionCodec() to have 1 terminal decoder

Summary: getAutoUncompressionCodec() currently only allows unambiguous headers. Allow a single "terminal codec" to be called if all other codecs can't uncompress or throw.

Reviewed By: terrelln

Differential Revision: D5804833

fbshipit-source-id: 057cb6e13a48fea20508d5c028234afddf7435f6
folly/io/Compression.cpp
folly/io/Compression.h
folly/io/test/CompressionTest.cpp