react-native/Libraries/WebSocket
Ewan Mellor 03512fb721 Fix the Origin: header used in WebSocket requests.
Summary:
RFC 6454 section 7 defines the Origin: header syntax, and it's a
scheme, host, and optional port, not a URL.

Section 6 defines serialization of the header, including omission of the
port.

Therefore, we need to omit the trailing slash in all cases, and omit
the port if it matches the default port for the protocol.
Closes https://github.com/facebook/react-native/pull/7920

Differential Revision: D3387619

fbshipit-source-id: 552756e63ad41463af357a5073fae56c96e58958
2016-06-03 15:13:41 -07:00
..
RCTWebSocket.xcodeproj Fix OSS iOS build 2016-02-17 07:38:33 -08:00
__mocks__ Fix WebSocket compatibility with event-target-shim ^1.0.5 2016-04-27 12:26:23 -07:00
__tests__ Update Jest APIs on fbsource 2016-04-27 19:16:32 -07:00
RCTSRWebSocket.h Backed out changeset 183744d2415b 2016-03-15 11:49:28 -07:00
RCTSRWebSocket.m Fix the Origin: header used in WebSocket requests. 2016-06-03 15:13:41 -07:00
RCTWebSocketExecutor.h Refactored module access to allow for lazy loading 2015-11-25 04:49:45 -08:00
RCTWebSocketExecutor.m Wait longer for debugger proxy 2016-04-19 17:13:25 -07:00
RCTWebSocketManager.h Enable persistent socket between packager and bridge (1/N). 2016-02-16 23:05:36 -08:00
RCTWebSocketManager.m Increase RN devtools retry timeout 2016-04-01 07:02:25 -07:00
RCTWebSocketModule.h Updated Websocket to use new event system 2016-05-12 08:30:24 -07:00
RCTWebSocketModule.m Updated Websocket to use new event system 2016-05-12 08:30:24 -07:00
WebSocket.js Updated Websocket to use new event system 2016-05-12 08:30:24 -07:00
WebSocketEvent.js Implement WebSocket module for Android. Fixes #2837 2015-10-07 08:36:22 -07:00