From 4d80662a65eead0d46e32399c01a6387be931e02 Mon Sep 17 00:00:00 2001 From: Pasi Mankinen Date: Sat, 14 Apr 2012 07:28:19 +0800 Subject: [PATCH] workaround osx compiler bug Signed-off-by: Pasi Mankinen --- lib/handshake.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/handshake.c b/lib/handshake.c index 3455b39..f343da9 100644 --- a/lib/handshake.c +++ b/lib/handshake.c @@ -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); -- 2.7.4