[184] in 6.033-lab
strncmp and strcmp
daemon@ATHENA.MIT.EDU (Benjie Chen)
Tue Mar 7 21:17:50 2000
From: Benjie Chen <benjie@cag.lcs.mit.edu>
Message-Id: <200003080217.VAA19809@amsterdam.lcs.mit.edu>
To: 6.033-lab@MIT.EDU
Date: Tue, 7 Mar 2000 21:17:41 -0500 (EST)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I used strncmp instead of strcmp for string comparison in the http parser, so
it turns out GETX was being parsed as GET. I fixed this in the version in the
locker. If you want to fix this, just change strncmp to strcmp and remove the
last argument of the call.
Thanks to Jeremy Todd for pointing this out.
Benjie
--
Benjie Chen
benjie@lcs.mit.edu