mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Revert "getpart.pm: Strip carriage returns to fix Windows support"
This reverts commit e51b23c925
.
As discussed on the mailinglist, this was not the correct approach.
This commit is contained in:
parent
25f08de4d6
commit
e73db5dcbd
@ -213,10 +213,9 @@ sub compareparts {
|
||||
# we cannot compare arrays index per index since with the base64 chunks,
|
||||
# they may not be "evenly" distributed
|
||||
|
||||
if($^O eq "MSWin32" || $^O eq "msys") {
|
||||
$first =~ s/\r\n/\n/g;
|
||||
$second =~ s/\r\n/\n/g;
|
||||
}
|
||||
# NOTE: this no longer strips off carriage returns from the arrays. Is that
|
||||
# really necessary? It ruins the testing of newlines. I believe it was once
|
||||
# added to enable tests on win32.
|
||||
|
||||
if($first ne $second) {
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user