summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPasi Mankinen <pasi.t.mankinen@student.jyu.fi>2012-04-14 07:28:19 +0800
committerAndy Green <andy.green@linaro.org>2012-04-14 07:30:25 +0800
commit4d80662a65eead0d46e32399c01a6387be931e02 (patch)
tree829b012fdbba90c3338e5ed25f5c33efd64f65f3
parent9c5436cb57ee63aed94b68d1cf584077ea0478a7 (diff)
workaround osx compiler bug
Signed-off-by: Pasi Mankinen <pasi.t.mankinen@student.jyu.fi>
-rw-r--r--lib/handshake.c4
1 files changed, 3 insertions, 1 deletions
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);