19 Jul 12:25
extra spaces being added
From: Paul Slootman <paul@...>
Subject: extra spaces being added
Newsgroups: gmane.network.wwwoffle.user
Date: 2007-07-19 10:26:40 GMT
Subject: extra spaces being added
Newsgroups: gmane.network.wwwoffle.user
Date: 2007-07-19 10:26:40 GMT
While investigating http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=395009 (which is a wierd bug...) I noticed that pages received via wwwoffle were larger than directly received pages. Wwwoffle is adding spaces before /> strings. To demonstrate: # echo "<bla />"|wwwoffle-write --addheader http://foo.bar/bla # wwwoffle-read http://foo.bar/bla | cat -vet HTTP/1.0 200 OK^M$ Content-Type: text/html^M$ ^M$ <bla />$ # http_proxy=http://localhost:8080/ GET http://foo.bar/bla | cat -vet <bla />$ Now this shouldn't be a problem for properly written browsers (I've checked that it doesn't happen with e.g. text/plain content), but I suspect an off-by-one error somewhere... Paul Slootman
RSS Feed