<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">OK, updated.<div>The changes were so it would work behind nginx.</div><div>But you diagnosis looks good - it still doesn't understand POST</div><div>The appropriate behaviour though should be to close the connection and move on...</div><div>Russell</div><div><br></div><div><br><div><div>On 28 Sep 2014, at 3:59 pm, Russell Allen <a href="mailto:mail@russell-allen.com">mail@russell-allen.com</a> [self-interest] <<a href="mailto:self-interest@yahoogroups.com">self-interest@yahoogroups.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255);"><div id="ygrp-mlmsg" style="font-size: 13px; font-family: Arial, helvetica, clean, sans-serif; position: relative;"><div id="ygrp-msg" style="line-height: 1.22em; z-index: 1;"><div id="ygrp-text" style="line-height: 1.22em; font-family: Georgia;"><div style="line-height: 1.22em; margin: 0px 0px 1em;"><br class="webkit-block-placeholder"></div><div style="line-height: 1.22em;">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!</div><div style="line-height: 1.22em;">Russell<br style="line-height: 1.22em;"><div style="line-height: 1.22em;"><br style="line-height: 1.22em;"></div>Sent from my phone<div style="line-height: 1.22em;"><br style="line-height: 1.22em;"></div></div><div style="line-height: 1.22em;"><br style="line-height: 1.22em;">On 28 Sep 2014, at 3:53 pm, "Chris Double<span class="Apple-converted-space"> </span><a href="mailto:chris.double@double.co.nz" style="line-height: 1.22em;">chris.double@double.co.nz</a><span class="Apple-converted-space"> </span>[self-interest]" <<a href="mailto:self-interest@yahoogroups.com" style="line-height: 1.22em;">self-interest@yahoogroups.com</a>> wrote:<br style="line-height: 1.22em;"><br style="line-height: 1.22em;"></div><blockquote type="cite" style="margin: 0px 0px 0px 4px; line-height: 1.22em;"><div style="line-height: 1.22em;"><span style="line-height: 1.22em;"> </span><div id="ygrp-text" style="line-height: 1.22em; font-family: Georgia;"><p style="line-height: 1.22em; margin: 0px 0px 1em;">On Sun, Sep 28, 2014 at 8:51 AM, Russell Allen<span class="Apple-converted-space"> </span><a href="mailto:mail@russell-allen.com" style="line-height: 1.22em; font-family: Verdana;">mail@russell-allen.com</a><br style="line-height: 1.22em;">[self-interest] <<a href="mailto:self-interest@yahoogroups.com" style="line-height: 1.22em; font-family: Verdana;">self-interest@yahoogroups.com</a>> wrote:<br style="line-height: 1.22em;">> POST /wp-login.php HTTP/1.0<br style="line-height: 1.22em;">...<br style="line-height: 1.22em;">> No 'last' slot found in nil.<br style="line-height: 1.22em;"><br style="line-height: 1.22em;">This error seems to happen because it's a POST request. The code in<br style="line-height: 1.22em;">webserver handleRequest looks for 'GET *'. If it doesn't find it it<br style="line-height: 1.22em;">doesn't set the 'url' variable so that remains at nil. When<br style="line-height: 1.22em;">staticSiteServer's handleUrl method is called it is called with that<br style="line-height: 1.22em;">nil parameter. It then calls 'last' on it to find out if it has a<br style="line-height: 1.22em;">trailing '/'.<br style="line-height: 1.22em;"><br style="line-height: 1.22em;">I think a fix would be to just treat non-GET as 404 and not pass on to<br style="line-height: 1.22em;">the servlet.<br style="line-height: 1.22em;"><br style="line-height: 1.22em;">--<span class="Apple-converted-space"> </span><br style="line-height: 1.22em;"><a href="http://www.bluishcoder.co.nz/" style="line-height: 1.22em; font-family: Verdana;">http://www.bluishcoder.co.nz</a><br style="line-height: 1.22em;"></p></div></div></blockquote><div style="line-height: 1.22em; margin: 0px 0px 1em;"><br class="webkit-block-placeholder"></div></div><div style="line-height: 1.22em; color: rgb(255, 255, 255); height: 0px;"></div></div></blockquote></div><br></div></body></html>