aboutsummaryrefslogtreecommitdiffstats
path: root/src/cowboy.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-01-20 15:16:50 +0100
committerLoïc Hoguin <[email protected]>2017-01-20 15:16:50 +0100
commit353dc29d8f7e9aed7a35426f680f39a975a4cbcb (patch)
tree0afab7e097390bbb0333ce2f61c4b707f2c9dbdd /src/cowboy.erl
parent0f8452cafaa27aeffb103019564c086eacfd34f9 (diff)
downloadcowboy-353dc29d8f7e9aed7a35426f680f39a975a4cbcb.tar.gz
cowboy-353dc29d8f7e9aed7a35426f680f39a975a4cbcb.tar.bz2
cowboy-353dc29d8f7e9aed7a35426f680f39a975a4cbcb.zip
Fix protocol breaking when user tries to send empty chunk
The {data, IsFin, Data} uses IsFin to indicate whether this is the last chunk, while chunked transfer-encoding uses the length of Data, and ends when it is 0. We must therefore not send chunks with empty data.
Diffstat (limited to 'src/cowboy.erl')
0 files changed, 0 insertions, 0 deletions