<s> """<STR_LIT>""" <EOL> from w3lib . http import * <EOL> def decode_chunked_transfer ( chunked_body ) : <EOL> """<STR_LIT>""" <EOL> body , h , t = '<STR_LIT>' , '<STR_LIT>' , chunked_body <EOL> while t : <EOL> h , t = t . split ( '<STR_LIT:\r\n>' , <NUM_LIT:1> ) <EOL> if h == '<STR_LIT:0>' : <EOL> break <EOL> size = int ( h , <NUM_LIT:16> ) <EOL> body += t [ : size ] <EOL> t = t [ size + <NUM_LIT:2> : ] <EOL> return body </s>
