test for Content-Length verification

Signed-off-by: Nick Wade <nwade@pivotal.io>
use chan struct{} instead of chan interface{} for semaphores

Signed-off-by: Nick Wade <nwade@pivotal.io>