mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
workaround osx compiler bug
Signed-off-by: Pasi Mankinen <pasi.t.mankinen@student.jyu.fi>
This commit is contained in:
parent
9c5436cb57
commit
4d80662a65
1 changed files with 3 additions and 1 deletions
|
@ -126,8 +126,10 @@ handshake_00(struct libwebsocket_context *context, struct libwebsocket *wsi)
|
|||
if (wsi->ssl)
|
||||
LWS_CPYAPP(p, "\x0d\x0aSec-WebSocket-Location: wss://");
|
||||
else
|
||||
#endif
|
||||
LWS_CPYAPP(p, "\x0d\x0aSec-WebSocket-Location: ws://");
|
||||
#else
|
||||
LWS_CPYAPP(p, "\x0d\x0aSec-WebSocket-Location: ws://");
|
||||
#endif
|
||||
|
||||
LWS_CPYAPP_TOKEN(p, WSI_TOKEN_HOST);
|
||||
LWS_CPYAPP_TOKEN(p, WSI_TOKEN_GET_URI);
|
||||
|
|
Loading…
Add table
Reference in a new issue