László Károlyi
4adcf9080e
Fixing for quote-nazism
2018-05-10 17:32:01 +02:00
László Károlyi
31bb1bcc23
Fixing non-bytes headers, adding proxyhost+proxyport custom headers
...
The headers on my environment aren't bytes, rather str-s, and so
getting the host and port from those will result None being passed
as a result.
Also, since X-Forwarded-For is not to be trusted, and custom nginx
configurations can pass a `X-Real-IP` header, add two extra command
line parameters to be able to parse custom passed remote IP headers.
2018-05-10 17:22:27 +02:00
Andrew Godwin
446fc69408
Fixed #150 : Correctly handle bad querystrings
2018-03-04 09:48:33 -08:00
Andrew Godwin
853771ec95
Move testing to use multiprocessing for better reliability
...
We can also hopefully reuse this for LiveServerTestCase
2018-02-19 20:58:47 -08:00
Andrew Godwin
f53eb0dda6
Don't put commas in the header hypothesis tests
2018-02-07 14:15:28 -08:00
Andrew Godwin
13511d2ca6
Fixed #162 : Test suite now uses port 0 binding
2018-02-07 12:03:54 -08:00
Jonas Lidén
d46429247f
Unix socket fix ( #161 )
...
Fix error on listeners when passing a unix socket
2018-02-06 00:04:44 -08:00
Andrew Godwin
105e1d5436
Don't apply HTTP timeout to WebSocket connections!
2018-02-04 12:08:57 -08:00
Andrew Godwin
eb7468059d
Make Daphne process tests try harder.
2018-02-01 21:22:15 -08:00
Andrew Godwin
0572b1dbcd
Further improve flaky header tests
2018-02-01 21:18:13 -08:00
Andrew Godwin
db68c43de1
Fix imports and use of six
2018-02-01 21:02:37 -08:00
Andrew Godwin
51c2de3f8c
Fix header matching in websocket tests
2018-02-01 21:02:27 -08:00
Andrew Godwin
b287a74236
Make test port selection less flaky
2018-02-01 20:32:08 -08:00
Andrew Godwin
26fa870540
Move to "body" everywhere in HTTP messages
2017-11-29 21:27:24 -08:00
Andrew Godwin
3358767814
Increase hypothesis deadlines for slower systems/Travis
2017-11-29 00:03:29 -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
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
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