diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2011-09-16 08:28:02 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2011-09-16 08:28:02 (GMT) |
commit | 092b0d8d66bc30b07c53e4ca785cd51e82c2b7df (patch) | |
tree | e9d9531b410872bc585652d409b21187b47b6198 /tests/httpd | |
parent | 3d2e1cceb46e104ca8ecdac157dd4c083a207f8c (diff) | |
download | tcl-092b0d8d66bc30b07c53e4ca785cd51e82c2b7df.zip tcl-092b0d8d66bc30b07c53e4ca785cd51e82c2b7df.tar.gz tcl-092b0d8d66bc30b07c53e4ca785cd51e82c2b7df.tar.bz2 |
[Bug 3391977]: Ensure that the -headers option to http::geturl overrides the
-type option (important because -type has a default that is not always
appropriate, and the header must not be duplicated).
Diffstat (limited to 'tests/httpd')
-rw-r--r-- | tests/httpd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/httpd b/tests/httpd index 5272385..f810797 100644 --- a/tests/httpd +++ b/tests/httpd @@ -175,6 +175,14 @@ proc httpdRespond { sock } { set html "Got [string length $data(query)] bytes" set type text/plain } + *headers* { + set html "" + set type text/plain + foreach {key value} $data(meta) { + append html [list $key $value] "\n" + } + set html [string trim $html] + } default { set type text/html |