<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 30, 2014 at 2:25 AM, Mateusz Viste <span dir="ltr"><<a href="mailto:mateusz@viste.fr" target="_blank">mateusz@viste.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Bob,<br>
<br>
Thanks for the feedback!<br>
<br>
Actually, it's not as simple as that - I do request the full selectors all right (eg. /gopher), but I send an \n terminator instead of \r\n. This I will fix asap.<br>
<br>
Your server, on the other hand, seems to fail quite ungracefully on such condition, apparently trying to trim something that isn't there (hence ending up one letter short).<br><div class=""><div class="h5"><br>
</div></div></blockquote></div><div class="gmail_extra"><br></div>Ok, thanks for the report. You are right, my server didn't handle non-compliant request lines correctly, so I've fixed that.</div><div class="gmail_extra"><br></div><div class="gmail_extra">In the spirit of RFC 1958, I'll be tolerant and you can be strict:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><pre class="" style="font-size:1em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)">3.9 Be strict when sending and tolerant when receiving.
   Implementations must follow specifications precisely when sending to
   the network, and tolerate faulty input from the network. When in
   doubt, discard faulty input silently, without returning an error
   message unless this is required by the specification.</pre><pre class="" style="font-size:1em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><br></pre><pre class="" style="font-size:1em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif"><br></font></pre><pre class="" style="font-size:1em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">Bob </font></pre><pre class="" style="font-size:1em;margin-top:0px;margin-bottom:0px;color:rgb(0,0,0)"><font face="arial, helvetica, sans-serif">gopher://<a href="http://whitemesa.net">whitemesa.net</a></font></pre></div></div>