-
Benno Fünfstück authored
This fixes an issue in the curl transport when a text response is returned that doesn't end with a newline from a POST or PUT request. The code expects the HTTP status code to be on a new line, but that is not the case if the response doesn't have a trailing new line. We fix this by always printing a new line before printing the status code. To avoid duplicate new lines, we now strip trailing empty lines at the end of the response.
9591d954