Fixed typo when setting struct member if no connection has been set.
@@ -1473,7 +1473,7 @@ ws_set_handshake_headers (WSHeaders * headers) {
if (!headers->upgrade)
headers->upgrade = xstrdup ("websocket");
if (!headers->connection)
- headers->upgrade = xstrdup ("Upgrade");
+ headers->connection = xstrdup ("Upgrade");
free (s);
}
