Fix content length errors when testing with CURL