Attachment "http.patch" to
ticket [452217ffff]
added by
hobbs
2001-08-21 06:49:09.
Index: library/http/http.tcl
===================================================================
RCS file: /cvsroot/tcl/tcl/library/http/http.tcl,v
retrieving revision 1.36
diff -b -c -r1.36 http.tcl
*** library/http/http.tcl 2001/08/09 01:06:42 1.36
--- library/http/http.tcl 2001/08/20 23:48:34
***************
*** 29,37 ****
-accept */*
-proxyhost {}
-proxyport {}
- -useragent {Tcl http client package 2.3.2}
-proxyfilter http::ProxyRequired
}
variable formMap
variable alphanumeric a-zA-Z0-9
--- 29,37 ----
-accept */*
-proxyhost {}
-proxyport {}
-proxyfilter http::ProxyRequired
}
+ set http(-useragent) "Tcl http client package [package provide http]"
variable formMap
variable alphanumeric a-zA-Z0-9
***************
*** 394,400 ****
if {[catch {
puts $s "$how $srvurl HTTP/1.0"
puts $s "Accept: $http(-accept)"
! puts $s "Host: $host"
puts $s "User-Agent: $http(-useragent)"
foreach {key value} $state(-headers) {
regsub -all \[\n\r\] $value {} value
--- 394,400 ----
if {[catch {
puts $s "$how $srvurl HTTP/1.0"
puts $s "Accept: $http(-accept)"
! puts $s "Host: $host:$port"
puts $s "User-Agent: $http(-useragent)"
foreach {key value} $state(-headers) {
regsub -all \[\n\r\] $value {} value