mirror of
https://github.com/nghttp2/nghttp2.git
synced 2025-12-07 10:38:53 +08:00
It now always select "spdy/2" as a next protocol regardless whether or not the server advertises it. The NPN draft allows this. Returning integer version number is not flexible because the selected protcol is just a string. The function now returns 0 if the server advertised spdy/2, or -1.