> I've pulled from patch-tag and cleaned and rebuilt happstack-util,
> happstack-data, happstack-server, and gitit, and made sure that the
> patch mentioned in that thread, 'compressedResponseFilter: don't mzero
> out if no "Accept-Encoding" header in the request' is present in my
> repo.
>
> It doesn't seem to make a difference to either curl or elinks.
"Works for me," for what it's worth, with wget, curl, "curl
--compressed", and web browsers.
GHC can do pretty aggressive cross-module inlining, so it may be that
you have old code inlined in some other library. (Usually you get a
linker error when that happens though.)
I know you said you did this already, but just to make sure it would be
a good idea to do a full clean & install of all libraries; in happstack
there are some scripts in the bin/ directory that will take care of that
for you. Clean and rebuild any libraries which depend on happstack also
(like happstack-helpers and gitit.)
If it's still busted maybe you can strap a tcpdump across the server
connection and send the output. On my OSX box the command to do this
looks like:
$ sudo tcpdump -i lo0 -A -s 0 port 5050 > tcp.dump
G.
--
Gregory Collins <gr...@gregorycollins.net>
After discussions with Eric, it seems that my problem stemmed from
gitit.cabal declaring an upper-bound on happstack-server - so -server
was being installed but not used.
Kowey updated http://test.darcs.net to use darcs-everything; currently
curl now works on it, but w3m bombs and elinks displays a HTTP 406
error (attached). So I wonder if there is another bug?
--
gwern
> On Sun, Apr 12, 2009 at 2:10 PM, Gregory Collins
> <gr...@gregorycollins.net> wrote:
>> tcpdump -i lo0 -A -s 0 port 5050
>
> Kowey updated http://test.darcs.net to use darcs-everything; currently
> curl now works on it, but w3m bombs and elinks displays a HTTP 406
> error (attached). So I wonder if there is another bug?
I'd like to see the request headers. Could you provide a dump?
According to the spec, if the client sends an "Accept-Encoding" header
we don't understand, 406 is the correct response. I'm of the opinion
that we should be a little laxer about this.
G
--
Gregory Collins <gr...@gregorycollins.net>
> On Wed, Apr 15, 2009 at 10:57 AM, Gregory Collins <gr...@gregorycollins.net> wrote:
>
> After some tweaking, this is what I got for a single Elinks request:
The parser didn't like the "2" in "bzip2". Attached a fix.
With that patch, elinks is now working with Gitit. Great!
--
gwern
The parser didn't like the "2" in "bzip2". Attached a fix.