Commit Graph

358 Commits

Author SHA1 Message Date
Andrew Godwin
691151b097 Releasing 1.4.2 2018-01-05 00:41:58 -08:00
Andrew Godwin
f335232373 Fix poorly captured second argument on Python 2 2018-01-05 00:39:46 -08:00
Andrew Godwin
0c633fa968 Releasing 1.4.1 2018-01-02 13:31:41 -08:00
Andrew Godwin
3fcfe45e84 Add missing proto header argument to HTTPFactory 2018-01-02 13:29:03 -08:00
Andrew Godwin
13e7804187 Releasing 1.4.0 2018-01-02 11:39:58 -08:00
Andrew Godwin
26fa870540 Move to "body" everywhere in HTTP messages 2017-11-29 21:27:24 -08:00
Andrew Godwin
44c1d0905f Update version and README 2017-11-29 00:12:14 -08:00
Andrew Godwin
3358767814 Increase hypothesis deadlines for slower systems/Travis 2017-11-29 00:03:29 -08:00
Andrew Godwin
29db466c48 Oldest supported twisted version is 17.5 now. 2017-11-28 23:57:44 -08:00
Andrew Godwin
b55fc382e8 Tox is no longer needed for tests. 2017-11-28 23:49:51 -08:00
Andrew Godwin
b04e6a5a64 Ignore eggs from flake8 2017-11-28 23:47:11 -08:00
Andrew Godwin
7f5fe7370f Add flake8 linting 2017-11-28 23:42:35 -08:00
Andrew Godwin
08e7841718 Fix import ordering 2017-11-28 18:03:29 -08:00
Andrew Godwin
03aa8548fe Stop using tox and start linting 2017-11-28 17:59:59 -08:00
Andrew Godwin
a57ef2fa54 Detect listening failures 2017-11-28 17:38:22 -08:00
Andrew Godwin
20ff8fec28 Match to the new ASGI-HTTP spec. 2017-11-28 17:28:35 -08:00
Andrew Godwin
7fb3e9a167 Clean up comments, names and imports 2017-11-27 00:02:37 -08:00
Andrew Godwin
567c27504d Add websocket tests to make sure everything important is covered. 2017-11-27 00:00:34 -08:00
Andrew Godwin
1ca1c67032 Add HTTP response test suite 2017-11-26 00:06:23 -08:00
Andrew Godwin
e0e60e4117 Full HTTP request test suite 2017-11-25 23:19:27 -08:00
Andrew Godwin
b3115e8dcf Start fixing travis config 2017-11-25 18:35:12 -08:00
Andrew Godwin
b72349d2c1 HTTP protocol tests 2017-11-25 18:23:54 -08:00
Andrew Godwin
0626f39214 Unify all strings to double quotes 2017-11-25 13:41:38 -08:00
Andrew Godwin
22aa56e196 Start on fixing tests 2017-11-25 13:39:46 -08:00
Andrew Godwin
017797c05b Change to scope-based code 2017-11-12 16:32:30 -08:00
Thomas Steen Rasmussen
f9233d4b47 Make sure headers are always correctly encoded
WebSocket headers were not correctly encoding as bytestrings.
2017-10-12 11:06:18 -07:00
Buky
d24fd06460 Update Readme.rst (#138)
Fix line commande for pip
2017-09-12 10:22:14 -07:00
Andrew Godwin
01f174bf26 Trying out asyncio based interface 2017-09-07 21:24:14 -07:00
Nick Sellen
05bd4ac258 Parse X-Forwarded-Proto header (#136)
Adds the ability to use this header for HTTPS detection.
2017-08-25 10:24:24 -07:00
Artem Malyshev
3161715238 Log interface listener errors.
Fix #133.
2017-08-13 19:18:54 +03:00
Andrew Godwin
a656c9f4c6 Initial refactor to get HTTP working in new style 2017-08-07 14:15:35 +10:00
Tom Turner
a69d69490b Removed a unsed import (urlencode) (#131) 2017-07-30 22:28:08 +12:00
Adam Johnson
79927fbe10 Travis - test on Trusty (#129)
As per [their blog post](https://blog.travis-ci.com/2017-07-11-trusty-as-default-linux-is-coming) they're making it the new default, best to be ahead of the curve.
2017-07-29 14:42:50 +12:00
Andrew Godwin
f3b5d854ca Fix slow hypothesis test 2017-07-24 10:57:47 -07:00
Andrew Godwin
8fd8f794a4 Fixed #128: Could not use file descriptor 0 2017-07-24 10:41:54 -07:00
Andrew Godwin
cf7e7f3924 Fix flaky test that times out on Python 3.5 only 2017-06-16 10:50:20 +08:00
Andrew Godwin
fbb080c600 Releasing 1.3.0 2017-06-16 10:37:30 +08:00
Andrew Godwin
3b4801527d Fixed #123: Add default websocket timeout. 2017-06-12 10:06:54 +08:00
ElRoberto538
c5385fb253 Added websocket_handshake_timeout option/server param
Added an optional parameter to Server and HTTPFactory to allow Autobahn openHandshakeTimeout to be overridden.
2017-06-02 16:08:58 -07:00
Eric Menendez
4ff2384337 Set HTTP Server header to "Daphne" to avoid revealing Autobahn version number. (#122) 2017-05-30 15:56:16 -07:00
Camilo Nova
63d2166320 Fix typo (#120) 2017-05-26 15:13:27 -07:00
John Miller
3683e71afc Fix Minor Typo in CLI Help Message, "WeSocket"->"WebSocket" (#117) 2017-05-23 18:19:11 -07:00
Andrew Godwin
eb195c6004 Don't break if protocol is removed before it's put into reply_protocols 2017-05-15 09:39:03 -07:00
Maik Hoepfel
8787c1dfe2 Check query string for spec conformance again (#112)
This check was skipped because of
https://github.com/django/daphne/issues/110. As this issue is now fixed,
we can re-enable the check again.
2017-05-02 10:23:49 -07:00
Andrew Godwin
a59bd123a9 Fix ws query test 2017-04-29 19:14:25 -07:00
Andrew Godwin
6318bae452 Fixed #110: Use raw WS query string rather than reconstructing it 2017-04-29 19:09:07 -07:00
Maik Hoepfel
2bcec3fe94 Websockets test and unicode fix for Python 2 (#111)
* Python 2 fix for host address

This is a copy of
57051a48cd
for the Websocket protocol.

In Python 2, Twisted returns a byte string for the host address, while
the spec requires a unicode string. A simple cast gives us consistency.

* Test suite for websocket tests

This commit

* introduces some new helpers to test the Websocket protocol
* renames the old ASGITestCase class to ASGIHTTPTestCase, and
  introduces a test case for testing Websockets
* moves some helper methods that are shared between HTTP and Websockets
  into a mutual base class
* uses the new helpers to simplfiy the existing tests
* and adds a couple new tests.
2017-04-28 14:45:07 -07:00
Andrew Godwin
bd03fabce6 Don't log discarded old protocol messages as ERROR 2017-04-04 10:51:42 +02:00
Yoan Blanc
382318b6d2 Run tox tests from travis. (#104) 2017-04-03 15:49:08 +02:00
Andrew Godwin
46656aad24 Releasing version 1.2.0
Includes some test fixes for the new reply channel style.
2017-04-01 15:26:57 +01:00