aboutsummaryrefslogtreecommitdiffstats
path: root/test/handlers/long_polling_h.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2017-09-25 12:34:44 +0200
committerLoïc Hoguin <[email protected]>2017-09-25 12:48:47 +0200
commitc09b10190baaae37f4de8bc1732d79acca62b53d (patch)
treeac6372b69cd36e20330531361896a86632ac4ab7 /test/handlers/long_polling_h.erl
parenta6126306a2b9e956c38b10e8cf1e60acdb4e63fe (diff)
downloadcowboy-c09b10190baaae37f4de8bc1732d79acca62b53d.tar.gz
cowboy-c09b10190baaae37f4de8bc1732d79acca62b53d.tar.bz2
cowboy-c09b10190baaae37f4de8bc1732d79acca62b53d.zip
Move body length count to cowboy_stream_h instead of protocols
The documentation was correct, the code was not. This should make it easier to implement new protocols. Note that for HTTP/2 we will need to add some form of counting later on to check for malformed requests, but we can do simpler and just reduce from the expected length and then check if that's 0 when IsFin=fin.
Diffstat (limited to 'test/handlers/long_polling_h.erl')
0 files changed, 0 insertions, 0 deletions