B4J Question [BANanoServer] AddFilter Bug

LJG

Member
Hello Alain,

I found a bug in the BANanoServer class of the BANanoServer library (version 1.23). It is located around line 649 of the BANanoServer class (the bug is commented out below with the correction underneath):

BANanoServer Library in Class BANanoServer:
If mHttp2HttpsFilter <> "" Then
        'mSrvr.AddFilter("/*", mHttp2HttpsFilter <> "", False )
        mSrvr.AddFilter("/*", mHttp2HttpsFilter, False )
    End If

I could not figure out why it kept returning "true" when I tried to use the Http2HttpsFilter! Now we know why. Once I corrected this in the library, everything started to work perfectly.

Also, please consider adding a "secure" boolean property to the BANanoWebSocket (like the jServer WebSocket = ws.secure) so that we can determine if we need to initialize the BANanoWebSocket with "ws://" or "wss://".

Thank you!
 
Top