[self-interest] selflanguage.org website down

Russell Allen mail at russell-allen.com
Sun Sep 28 06:28:35 UTC 2014


OK, updated.
The changes were so it would work behind nginx.
But you diagnosis looks good - it still doesn't understand POST
The appropriate behaviour though should be to close the connection and move on...
Russell


On 28 Sep 2014, at 3:59 pm, Russell Allen mail at russell-allen.com [self-interest] <self-interest at yahoogroups.com> wrote:

> 
> I've just realised the code on github isn't the same version as was running, so hold off for a bit and I will update. Sorry!
> Russell
> 
> Sent from my phone
> 
> 
> On 28 Sep 2014, at 3:53 pm, "Chris Double chris.double at double.co.nz [self-interest]" <self-interest at yahoogroups.com> wrote:
> 
>>  
>> On Sun, Sep 28, 2014 at 8:51 AM, Russell Allen mail at russell-allen.com
>> [self-interest] <self-interest at yahoogroups.com> wrote:
>> > POST /wp-login.php HTTP/1.0
>> ...
>> > No 'last' slot found in nil.
>> 
>> This error seems to happen because it's a POST request. The code in
>> webserver handleRequest looks for 'GET *'. If it doesn't find it it
>> doesn't set the 'url' variable so that remains at nil. When
>> staticSiteServer's handleUrl method is called it is called with that
>> nil parameter. It then calls 'last' on it to find out if it has a
>> trailing '/'.
>> 
>> I think a fix would be to just treat non-GET as 404 and not pass on to
>> the servlet.
>> 
>> -- 
>> http://www.bluishcoder.co.nz
>> 
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.selflanguage.org/pipermail/self-interest/attachments/20140928/0f85cc2f/attachment.html>


More information about the Self-interest mailing list