-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Harden the parsing of the result code from curl
stderr and stdout can become interleaved, certainly on Windows, which results in the http result code becoming lost. Change puts a newline both before and after the code. However, the interleaving means that a blank line may appear _after_ the result code. Therefore, the logic now attempts to parse the first non-blank line from the end of the output from curl.
- Loading branch information
Showing
2 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters