For better readability, use different functions for storing the PUT body depending on whether or not Nginx wrote it to a temporary file.