[Libwebsockets] [libwebsockets] Fix the Origin field of client's header (#19)

"Andy Green (林安廸)" andy at warmcat.com
Fri Oct 25 16:18:36 CEST 2013


On 25/10/13 17:20, the mail apparently from u0u0 included:
> Fix the Origin field of client's header, add prefix "http://" to make it
> a valid URI.
> Golang websocket server check the Origin field of client's header , if
> not a valid URL that contain protocal,
> Golang websocket server will refuse client's request.

Applied thanks.

http://git.libwebsockets.org/cgi-bin/cgit/libwebsockets/commit/?id=44e260e004a414cd7d1ec3f36cc6bd4f25cdfdae

-Andy

> ------------------------------------------------------------------------
>
>
>         You can merge this Pull Request by running
>
>    git pull https://github.com/u0u0/libwebsockets master
>
> Or view, comment on, or merge it at:
>
> https://github.com/warmcat/libwebsockets/pull/19
>
>
>         Commit Summary
>
>   * Update client.c
>
>
>         File Changes
>
>   * *M* lib/client.c
>     <https://github.com/warmcat/libwebsockets/pull/19/files#diff-0> (2)
>
>
>         Patch Links:
>
>   * https://github.com/warmcat/libwebsockets/pull/19.patch
>   * https://github.com/warmcat/libwebsockets/pull/19.diff
>




More information about the Libwebsockets mailing list