1
0
Fork 0
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:
Pasi Mankinen 2012-04-14 07:28:19 +08:00 committed by Andy Green
parent 9c5436cb57
commit 4d80662a65

View file

@ -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);