More correct handling of inflate result.
More correct handling of inflate result.

tvanderbruggen/libwebsockets,davidgaleano/libwebsockets,tvanderbruggen/libwebsockets,davidgaleano/libwebsockets,davidgaleano/libwebsockets,tvanderbruggen/libwebsockets,tvanderbruggen/libwebsockets,tvanderbruggen/libwebsockets,davidgaleano/libwebsockets