From: Pasi Mankinen Date: Fri, 13 Apr 2012 23:28:19 +0000 (+0800) Subject: workaround osx compiler bug X-Git-Tag: 1.2~22 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d80662a65eead0d46e32399c01a6387be931e02;p=profile%2Fivi%2Flibwebsockets.git workaround osx compiler bug Signed-off-by: Pasi Mankinen --- 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);