changeset 209:6b1a579fb288

urllog: Accept only uncompressed data, because we use chunked download.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 19 Sep 2014 21:30:03 +0300
parents c6bbf69afc57
children 52cadf5a12b6
files urllog.tcl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/urllog.tcl	Fri Aug 15 10:18:23 2014 +0300
+++ b/urllog.tcl	Fri Sep 19 21:30:03 2014 +0300
@@ -489,7 +489,7 @@
   }
 
   ### Does the document pointed by the URL exist?
-  if {[catch {set utoken [::http::geturl $urlStr -progress urllog_http_handler -blocksize 2048 -timeout 6000]} uerrmsg]} {
+  if {[catch {set utoken [::http::geturl $urlStr -progress urllog_http_handler -blocksize 1024 -timeout 6000 -headers {Accept-Encoding identity}]} uerrmsg]} {
     urllog_verb_msg $urlNick $urlChan "$urlmsg_ioerror ($uerrmsg)"
     urllog_log "HTTP request failed: $uerrmsg"
     return 0