Dynatrace / libbuildpack-dynatrace

Common resources used for Dynatrace integration in Cloudfoundry Buildpacks.
Apache License 2.0
1 stars 5 forks source link

Truncate output file for the download before we copy the content there #4

Closed lrgar closed 5 years ago

lrgar commented 5 years ago

At the moment, downloads are being appended one after another in the output file, so it gets broken if the original download returned something, but the response code wasn't successful.

This PR truncates the file to make it empty before copying the download content there.