• I don't understand github.com/espruino/Espruino/blob/masterĀ­/libs/network/socketserver.c#L660

    I just looked at this again, and it's correct.

    The else refers to the if (options). What it's saying is (in a roundabout way) is 'if we're an HTTP connection, send a header, else send nothing'.

    If sendData is not undefined then we know the header has already been sent, and that if statement has no else on it.

    For some reason the indentation there is confusing. I'll add some comments.

About

Avatar for Gordon @Gordon started