summaryrefslogtreecommitdiff
path: root/websocket/_handshake.py
Commit message (Collapse)AuthorAgeFilesLines
* PEP8 style compliance fixesengn33r2021-05-041-3/+4
|
* Add support for permitting additional values in the "upgrade" and ↵Chris Wheeler2021-03-291-2/+2
| | | | "connection" headers (#627)
* Fix #526 by reverting invalid BSD license migration in commit e94ed9e to ↵engn33r2021-02-221-2/+1
| | | | return to LGPL2.1
* Add first draft of Sphinx documentationengn33r2021-01-311-1/+1
|
* Remove e71edd3 commit edits to fix TravisCI build (#657)engn33r2021-01-271-4/+3
|
* Merge pull request #4 from sawdustofmind/FIX-604engn33r2021-01-251-1/+1
|\ | | | | Capitalize default connection header
| * Capitalize default connection headersawdustofmind2020-02-191-1/+1
| |
* | Fix _handshake.py error where subproto is NoneErik2021-01-081-3/+4
| |
* | Fix None.lower() when sec-websocket-protocol response header does not existanuragbeniwal2020-05-081-2/+3
|/ | | | Fix for https://github.com/websocket-client/websocket-client/issues/516
* Merge pull request #533 from sfoerster/masterliris2019-12-251-3/+3
|\ | | | | _handshake: hasattr checks on six before accessing the values
| * _handshake: hasattr checks on six before accessing the valuesSteven Foerster2019-03-141-3/+3
| |
* | Merge branch 'master' into masterliris2019-12-251-5/+9
|\ \
| * \ Merge pull request #553 from spacewander/improve_readabilityliris2019-12-251-2/+3
| |\ \ | | | | | | | | Improve the readability of HTTP status codes.
| | * | Improve the readability of HTTP status codes.spacewander2019-05-101-2/+3
| | |/ | | | | | | | | | | | | This commit also changes the type of 'SUPPORTED_REDIRECT_STATUSES' to 'tuple'. It seems that this change doesn't break anything.
| * | updated if statement to include check against NoneDamjan Stulic2019-08-071-1/+1
| | |
| * | removed extra white spaceDamjan Stulic2019-08-071-1/+0
| | |
| * | added support for allowing users to change connection headerDamjan Stulic2019-08-071-3/+7
| |/
* | Pep8 fixesazaugg2019-04-241-0/+2
|/
* Merge pull request #506 from Torxed/masterliris2018-12-151-2/+10
|\
| * Manually assigning WebSocket-VersionAnton Hvornum2018-11-251-2/+10
| | | | | | | | | | | | | | | | When manually assigning `Sec-WebSocket-Key` & `Sec-WebSocket-Version`, websocket-client would raise: WebSocketException("Invalid WebSocket Header") Because the key for instance, would be inserted twice. The best way to get around this in the long run, would be to refrain from using lists as the header builder, since keys can't occur twice anyway. Thus, just creating the automated headers first, and then iterating over whatever the user inputs - would effectively replace any default headers automatically, without needing to parse "if host in options['headers']" etc. Just iterate over the headers given, replace the default ones and bam, profit.
* | Add response header in WebSocketBadStatusExceptiontarma2018-11-051-1/+1
|/
* Handle PY3.4/3.5Pär Tojkander2018-10-111-1/+4
|
* Handle PY2/3Pär Tojkander2018-10-111-1/+5
|
* Handle redirects in handshakePär Tojkander2018-10-111-3/+8
|
* fixed #432v0.49.0liris2018-08-141-1/+5
|
* fixed #HC-459liris2018-08-141-4/+5
|
* Added status message when HTTP can't be upgraded to WSDmitry Mottl2018-02-141-2/+2
|
* refs #357Hiroki Ohtani2017-12-101-2/+8
|
* Update _handshake.pyPeter "Marenthyu" Fredebold2017-11-301-2/+2
| | | see https://github.com/websocket-client/websocket-client/issues/368
* Implement simple cookie jartifayuki2016-12-211-1/+8
|
* erge #249liris2016-05-101-17/+16
|\
| * wsdump, test_fuzzingclient, websocket.*, test_websocket: Organise importsAllan Lewis2016-04-271-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, because of the multiple instances of `from foo import *`, names were imported from modules that had themselves imported them, instead of from the place of definition. This commit therefore does the following: - Declares `__all__` in every module that imports anything, so that `from foo import *` is sane. - Sorts the imports based on conventions, similar to the output of `isort`. - Places all conditional imports after unconditional imports, except where that isn't valid. - Imports local names from the modules where they are defined, except when importing the package itself.
| * wsdump, websocket.*: [PEP 8] Use conventional vertical spacingAllan Lewis2016-04-271-0/+1
| |
| * _abnf, _app, _http, _url: [PEP 8] Fix indentsAllan Lewis2016-04-271-1/+1
| |
| * _core, _handshake: Remove unused importsAllan Lewis2016-04-271-3/+0
| |
| * _handshake._get_handshake_headers: Use list literalAllan Lewis2016-04-271-4/+5
| |
* | Exclude port 443 from host http headerLiam Stanley2016-04-271-1/+1
|/
* fixed #215v0.34.0liris2015-10-281-5/+8
|
* python 2.6 supportliris2015-10-271-1/+6
|
* Merge pull request #211 from obi1kenobi/masterliris2015-10-271-3/+5
|\ | | | | Security improvements during handshake
| * Using os.urandom() and constant-time hash check for handshake. Fixes #209 #210Predrag Gruevski2015-09-211-3/+5
| |
* | Map dict to headers listDenisKolodin2015-08-221-2/+5
|/
* fixed #199liris2015-07-301-1/+1
| | | | WebSocketBadStatusException for handshake error
* fixed #179liris2015-05-071-0/+1
| | | | pass all tests on pypy3 2.4.0
* fixed #171liris2015-04-141-4/+8
|
* fixed #160 and some refactoringliris2015-03-251-4/+10
|
* fixed #158liris2015-03-241-2/+2
|
* fix bug: 'WebSocketException' is not definedRicter Zheng2015-03-221-0/+1
| | | fix NameError: global name 'WebSocketException' is not defined
* add "__all__"Hiroki Ohtani2015-03-191-0/+143