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