Description
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment:
OS: Linux 4.10
Node: 8.3.0
Yarn: 1.1.0
npm: 5.3.0
Watchman: Not Found
Error: unable to print environment info
{ Error: not found: xcodebuild
at getNotFoundError (/home/alebedev/code/sandbox/MyOfficeSandbox/node_modules/which/which.js:13:12)
at Function.whichSync [as sync] (/home/alebedev/code/sandbox/MyOfficeSandbox/node_modules/which/which.js:134:9)
at getXcodeVersion (/home/alebedev/code/sandbox/MyOfficeSandbox/node_modules/envinfo/envinfo.js:17:25)
at Object.module.exports.print (/home/alebedev/code/sandbox/MyOfficeSandbox/node_modules/envinfo/envinfo.js:136:28)
at Object.info (/home/alebedev/code/sandbox/MyOfficeSandbox/node_modules/react-native/local-cli/info/info.js:17:13)
at Promise.resolve.then (/home/alebedev/code/sandbox/MyOfficeSandbox/node_modules/react-native/local-cli/cliEntry.js:109:26)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
at Function.Module.runMain (module.js:611:11)
at startup (bootstrap_node.js:158:16) code: 'ENOENT' }
Steps to Reproduce
- Open Websocket connection from React Native code
const hostname = 'example.com';
cons path = 'websocket';
new Websocker(`wss://${hostname}/${path}');
- Inspect websocket open request headers. You will see
Origin: https://example.com/
Expected Behavior
Origin value should not contain trailing slash