prevent memorory corruption if POST body was written to temp file