diff options
author | patthoyts <patthoyts@users.sourceforge.net> | 2009-04-19 18:27:59 (GMT) |
---|---|---|
committer | patthoyts <patthoyts@users.sourceforge.net> | 2009-04-19 18:27:59 (GMT) |
commit | 088d91e5be449b50b2330892fc611bed5a4a6c6a (patch) | |
tree | 3b26238ddcfadfd8972ccfc769b72d9455ad5342 /library/http | |
parent | 0faf3c561ee72b67abea7c34667c19344d759d18 (diff) | |
download | tcl-088d91e5be449b50b2330892fc611bed5a4a6c6a.zip tcl-088d91e5be449b50b2330892fc611bed5a4a6c6a.tar.gz tcl-088d91e5be449b50b2330892fc611bed5a4a6c6a.tar.bz2 |
Removed newline appended to POST data.
Added tests to check that the data provided by a POST is as stated in the content-length [Bug 2715421]
Diffstat (limited to 'library/http')
-rw-r--r-- | library/http/http.tcl | 5 | ||||
-rw-r--r-- | library/http/pkgIndex.tcl | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/library/http/http.tcl b/library/http/http.tcl index 8de0a9d..654d8b0 100644 --- a/library/http/http.tcl +++ b/library/http/http.tcl @@ -8,12 +8,12 @@ # See the file "license.terms" for information on usage and redistribution of # this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: http.tcl,v 1.75 2009/04/10 14:19:44 patthoyts Exp $ +# RCS: @(#) $Id: http.tcl,v 1.76 2009/04/19 18:27:59 patthoyts Exp $ package require Tcl 8.6 # Keep this in sync with pkgIndex.tcl and with the install directories in # Makefiles -package provide http 2.8.0 +package provide http 2.8.1 namespace eval http { # Allow resourcing to not clobber existing data @@ -906,7 +906,6 @@ proc http::Write {token} { incr state(queryoffset) $state(-queryblocksize) if {$state(queryoffset) >= $state(querylength)} { set state(queryoffset) $state(querylength) - puts $sock "" set done 1 } } else { diff --git a/library/http/pkgIndex.tcl b/library/http/pkgIndex.tcl index c7029be..b953d49 100644 --- a/library/http/pkgIndex.tcl +++ b/library/http/pkgIndex.tcl @@ -1,2 +1,2 @@ if {![package vsatisfies [package provide Tcl] 8.6]} {return} -package ifneeded http 2.8.0 [list tclPkgSetup $dir http 2.8.0 {{http.tcl source {::http::config ::http::formatQuery ::http::geturl ::http::reset ::http::wait ::http::register ::http::unregister ::http::mapReply}}}] +package ifneeded http 2.8.1 [list tclPkgSetup $dir http 2.8.1 {{http.tcl source {::http::config ::http::formatQuery ::http::geturl ::http::reset ::http::wait ::http::register ::http::unregister ::http::mapReply}}}] |