I got woken up early this morning so I went ahead and made a fix since it's pretty trivial: https://github.com/kanaka/websockify/commit/f30ad05c70ab2a43c9078e2f79da40f1dc0c60ec
Please test and let me know if it addresses this issue. If not, that commit should give you an idea where in the code this is handled. Regards, Joel Martin (kanaka)