[HACK] get content-length from the headers so POST works