canonical libwebsockets.org websocket library
![]() Svetlin wrote on github According to RFC2616, all header field names in both HTTP requests and HTTP responses are case-insensitive. But libwebsockets uses a case-sensitive compare. Reproduce: Run libwebsockets against a server that sends all of its HTTP header field names in lower-case (for example: https://github.com/extend/cowboy). libwebsockets reports an error. The expected behavior is no errors reported and a successful handshake procedure. This changes the parser reference table in minilex to all lower case. The code to walk the parser tables then just forces a tolower on the incoming chars. This (and minilex tables) only applies to header names. Reported-by: svetlin-mladnov <?@github> Signed-off-by: Andy Green <andy.green@linaro.org> |
||
---|---|---|
cmake | ||
lib | ||
scripts | ||
test-server | ||
win32port | ||
.gitignore | ||
Android.mk | ||
changelog | ||
CMakeLists.txt | ||
config.h.cmake | ||
cross-arm-linux-gnueabihf.cmake | ||
libwebsockets-api-doc.html | ||
libwebsockets.spec | ||
LICENSE | ||
README | ||
README.build | ||
README.coding | ||
README.test-apps |
This is the libwebsockets C library for lightweight websocket clients and servers. For support, visit http://libwebsockets.org and consider joining the project mailing list at http://ml.libwebsockets.org/mailman/listinfo/libwebsockets You can get the latest version of the library from git http://git.libwebsockets.org https://github.com/warmcat/libwebsockets for more information: README.build - information on building the library README.coding - information for writing code using the library README.test-apps - information about the test apps built with the library