get rid of redundant if
chunked debugging printing, don't start next chunk if current chunk isn't finished
compare parsed request and original request