mirror of
https://github.com/curl/curl.git
synced 2026-08-26 17:03:32 +03:00
lib555: drop text conversion and encode data as ascii codes
If CURL_DOES_CONVERSION is enabled, uploaded LFs are mapped to CRLFs, giving a result that is different from what is expected. This commit avoids using CURLOPT_TRANSFERTEXT and directly encodes data to upload in ascii. Bug: https://github.com/curl/curl/pull/1872
This commit is contained in:
parent
a6b611f0d0
commit
bd5b9e50ce
2 changed files with 14 additions and 14 deletions
|
|
@ -106,10 +106,6 @@ chkhostname curlhost
|
|||
<strip>
|
||||
^User-Agent: curl/.*
|
||||
</strip>
|
||||
<strippart>
|
||||
# remove CR that CURLOPT_TRANSFERTEXT added, when CharConv enabled:
|
||||
s/^(this is the blurb we want to upload)\r\n/$1\n/ if($has_charconv)
|
||||
</strippart>
|
||||
<protocol>
|
||||
POST http://test.remote.example.com/path/555 HTTP/1.1
|
||||
Host: test.remote.example.com
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue