Skip to content

Commit

Permalink
IOController: Fix WebSocket URL judgement bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xqq committed Feb 13, 2017
1 parent 81a5186 commit 537f7e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/io-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class IOController {
this._seekHandler = null;

this._dataSource = dataSource;
this._isWebSocketURL = /wss?:\/\/(.+?)\//.test(dataSource.url);
this._isWebSocketURL = /wss?:\/\/(.+?)/.test(dataSource.url);
this._refTotalLength = dataSource.filesize ? dataSource.filesize : null;
this._totalLength = this._refTotalLength;
this._fullRequestFlag = false;
Expand Down

0 comments on commit 537f7e8

Please sign in to comment.