projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c5436c
)
workaround osx compiler bug
author
Pasi Mankinen
<pasi.t.mankinen@student.jyu.fi>
Fri, 13 Apr 2012 23:28:19 +0000
(07:28 +0800)
committer
Andy Green
<andy.green@linaro.org>
Fri, 13 Apr 2012 23:30:25 +0000
(07:30 +0800)
Signed-off-by: Pasi Mankinen <pasi.t.mankinen@student.jyu.fi>
lib/handshake.c
patch
|
blob
|
history
diff --git
a/lib/handshake.c
b/lib/handshake.c
index
3455b39
..
f343da9
100644
(file)
--- 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);