diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-31 22:05:31 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2023-03-31 22:05:31 (GMT) |
commit | 4f5c603784f1edcf014c802f68d84f7e98c55efe (patch) | |
tree | 2db018efad87ed328d3da116c78d3bae2fdf7b6b /library | |
parent | b6a444f634fe88af76fd43b8cb7a05df44c5f246 (diff) | |
parent | 0758324455f7cd805291c1062b6c7fb70fd13647 (diff) | |
download | tcl-4f5c603784f1edcf014c802f68d84f7e98c55efe.zip tcl-4f5c603784f1edcf014c802f68d84f7e98c55efe.tar.gz tcl-4f5c603784f1edcf014c802f68d84f7e98c55efe.tar.bz2 |
Rebase to 9.0
Diffstat (limited to 'library')
-rw-r--r-- | library/http/http.tcl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl index f2ad0a0..89334ca 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -1747,7 +1747,7 @@ proc http::OpenSocket {token DoLater} { fconfigure $sock -translation {auto crlf} \ -buffersize $state(-blocksize) if {[package vsatisfies [package provide Tcl] 9.0-]} { - fconfigure $sock -profile tcl8 + fconfigure $sock -profile replace \ } ##Log socket opened, DONE fconfigure - token $token } @@ -2168,7 +2168,7 @@ proc http::Connected {token proto phost srvurl} { fconfigure $sock -translation [list $trRead crlf] \ -buffersize $state(-blocksize) if {[package vsatisfies [package provide Tcl] 9.0-]} { - fconfigure $sock -profile tcl8 + fconfigure $sock -profile replace \ } # The following is disallowed in safe interpreters, but the socket is @@ -2561,7 +2561,7 @@ proc http::ReceiveResponse {token} { fconfigure $sock -translation [list auto $trWrite] \ -buffersize $state(-blocksize) if {[package vsatisfies [package provide Tcl] 9.0-]} { - fconfigure $sock -profile tcl8 + fconfigure $sock -profile replace \ } Log ^D$tk begin receiving response - token $token @@ -4555,7 +4555,7 @@ proc http::Eot {token {reason {}}} { set enc [CharsetToEncoding $state(charset)] if {$enc ne "binary"} { if {[package vsatisfies [package provide Tcl] 9.0-]} { - set state(body) [encoding convertfrom -profile tcl8 $enc $state(body)] + set state(body) [encoding convertfrom -profile replace $enc $state(body)] } else { set state(body) [encoding convertfrom $enc $state(body)] } @@ -4642,7 +4642,7 @@ proc http::GuessType {token} { return 0 } if {[package vsatisfies [package provide Tcl] 9.0-]} { - set state(body) [encoding convertfrom -profile tcl8 $enc $state(body)] + set state(body) [encoding convertfrom -profile replace $enc $state(body)] } else { set state(body) [encoding convertfrom $enc $state(body)] } @@ -4727,7 +4727,7 @@ proc http::quoteString {string} { # than [regsub]/[subst]). [Bug 1020491] if {[package vsatisfies [package provide Tcl] 9.0-]} { - set string [encoding convertto -profile tcl8 $http(-urlencoding) $string] + set string [encoding convertto -profile replace $http(-urlencoding) $string] } else { set string [encoding convertto $http(-urlencoding) $string] } |