dont use goto; add test for no-content-len