Kazu Yamamoto
690dc015d4
using IntMap for MultiMap.
...
Let's stop using our own red-black tree. IntMap is much more efficient.
2016-03-18 13:14:11 +09:00
Sönke Hahn
5435169f20
warp: withApplication: close socket before exiting
2016-03-09 12:53:05 +08:00
Sönke Hahn
12ab931362
warp: add testWithApplication
2016-03-08 18:45:09 +08:00
Sönke Hahn
a1ee04082e
add withApplication and openFreePort
2016-03-04 13:43:10 +08:00
Kazu Yamamoto
857508a75a
hashing ByteString only and cleaning up internal APIs.
2016-02-23 14:19:02 +09:00
Kazu Yamamoto
2d6b19ee88
fixing a test.
2015-12-16 13:56:57 +09:00
Kazu Yamamoto
b38899ba0f
supporting Last-Modified.
2015-12-04 15:00:47 +09:00
Kazu Yamamoto
eddf2618c3
removing unnecessary import.
2015-12-04 15:00:47 +09:00
Kazu Yamamoto
69b8aabaa4
implementing conditional request ( #359 )
2015-12-04 15:00:47 +09:00
Kazu Yamamoto
a364c54bf5
Revert "Lift up the isHead guard. ( #468 )"
...
This reverts commit 0297412e7f
.
2015-12-03 16:14:09 +09:00
Kazu Yamamoto
e65617f565
using the file info cache in sendResponse.
2015-12-01 10:57:49 +09:00
Kazu Yamamoto
0297412e7f
Lift up the isHead guard. ( #468 )
...
Note that content-Length: is not necessary in a response to HEAD.
2015-11-24 13:15:26 +09:00
Michael Snoyman
cb1e8d9ba8
HEAD file tests
2015-11-23 07:40:14 +02:00
Michael Snoyman
cbbeb23ce5
Add tests for empty HEAD responses (builder and streaming)
2015-11-23 07:28:49 +02:00
Sönke Hahn
c478cbc77f
Sanitize header values to prevent response splitting
2015-09-17 15:20:51 +08:00
Kazu Yamamoto
c477e9a7ae
typo.
2015-09-16 08:33:21 +09:00
Kazu Yamamoto
fe519c69a0
preventing response splitting attack.
2015-09-15 16:16:06 +09:00
Kazu Yamamoto
2164105cd0
refactoring test.
2015-09-15 16:04:41 +09:00
Andrew Pritchard
e3edfce2f7
Update tests to account for Accept-Ranges moving to fileRange
2015-09-12 11:55:59 -07:00
Kazu Yamamoto
c43251b0db
minimizing dependency to blaze-builder.
...
Use bytestring-builder instead.
Only chunkedTransferEncoding and chunkedTransferTerminator are used
from blaze-builder.
2015-08-11 14:35:53 +09:00
Andrew Pritchard
425ca72b7f
Add BufferPool test to provoke buffer clobber bug
...
I've confirmed this test fails when the change of
5ea6ada326133d9d06bd95a39eb651d39ba7861b is reverted, and passes
otherwise.
2015-07-28 18:13:29 -07:00
Michael Snoyman
52f892c3c9
stack.yaml file, doctest upgrade
2015-07-18 02:15:38 +03:00
Michael Snoyman
ae095af5ec
Add stack support to doctests
2015-07-10 04:54:47 +03:00
Kazu Yamamoto
11fa99bc3a
fixing description.
2015-06-12 14:38:52 +09:00
Kazu Yamamoto
229737f63d
adding test cases for readSendFile.
2015-06-12 14:37:36 +09:00
Kazu Yamamoto
02c4ffeab2
adding test cases for readSendFile.
2015-06-12 10:53:22 +09:00
Kazu Yamamoto
d9c6676f6a
adding SendFileSpec.
2015-06-12 10:34:06 +09:00
Kazu Yamamoto
1c461e4190
using FdCache for BSD variants.
2015-06-11 15:41:33 +09:00
Kazu Yamamoto
fc69c2e425
removing warnings.
2015-06-10 14:50:31 +09:00
Dylan Simon
d9cb4b798e
Improve range handling to return 416
...
Prevent parsing negative range end-points, truncate ranges to file size, and
correctly return 416 when requested range is outside file bounds.
2015-02-02 00:34:54 -05:00
Michael Snoyman
9edc2aab34
Revert "Don't have double content-length headers snoyberg/keter#52"
...
This reverts commit 76d474873e
.
2014-10-20 07:33:53 +03:00
Michael Snoyman
76d474873e
Don't have double content-length headers snoyberg/keter#52
...
Pinging @kazu-yamamoto . Can you review this patch? The issue is that,
currently, any responseFile respone which sets content-length ends up
with two content-length headers. I'm also going to patch wai-app-static
to not provide a content-length header, since it's incorrect in the case
of range requests.
2014-10-19 23:56:09 +03:00
Kazu Yamamoto
e1366da499
test uses 127.0.0.1 only ( fix #281 ).
2014-08-11 16:58:40 +09:00
Michael Snoyman
d0f3c29dad
Fix broken indexing in headerLines #274
2014-08-08 14:10:34 +03:00
Kazu Yamamoto
29fe0ee991
adding test cases for headerLines.
2014-08-08 18:23:25 +09:00
Michael Snoyman
f4fac7cc28
Use Control.Reader for Timeout and FdCache
2014-08-04 10:56:33 +03:00
Kazu Yamamoto
7174df44ff
s/localhost/127.0.0.1/
...
withTestServer specifies "*4" so we need to ensure that
sendGET uses IPv4.
2014-06-23 15:12:54 +09:00
Kazu Yamamoto
60e9955f04
removing warnings.
2014-06-23 13:57:21 +09:00
Michael Snoyman
a0a0567d0e
Fix bug with chunk boundaries snoyberg/http-client#58
2014-06-15 10:07:22 +03:00
Michael Snoyman
efe040c916
Merge branch 'no-conduit'
...
Conflicts:
wai-extra/wai-extra.cabal
wai-handler-launch/wai-handler-launch.cabal
wai-test/wai-test.cabal
wai-websockets/wai-websockets.cabal
wai/wai.cabal
warp-tls/warp-tls.cabal
warp/Network/Wai/Handler/Warp/Response.hs
warp/warp.cabal
2014-06-09 10:24:51 +03:00
Michael Snoyman
4801435877
Fix issue: chunked body when content-length present
2014-05-23 07:03:07 +03:00
Michael Snoyman
e67d64ca13
Warp test suite passes again
2014-05-22 10:27:40 +03:00
Michael Snoyman
4c30237b67
Add missing NOINLINE for tests
2014-04-29 08:15:17 +03:00
Michael Snoyman
63ad533299
Application uses bracket pattern
2014-04-23 18:17:33 +03:00
Michael Snoyman
54319e9697
Initial gutting of conduit
2014-04-23 14:35:19 +03:00
Michael Snoyman
ce24e90387
Failing test case for #249
2014-04-20 14:13:03 +03:00
Michael Snoyman
05a5add2fc
Add tests for unconsumed chunked bodies
...
At first I thought this was the cause of #249 , but that was a mistake.
But extra tests never hurt.
2014-04-20 13:49:08 +03:00
Michael Snoyman
70d89fbf5c
Randomized port numbers
2014-04-09 07:23:28 +03:00
Michael Snoyman
6c79e6a4f2
Fix orphan instance problem
2014-04-02 10:59:34 +03:00
Michael Snoyman
ae2b6b2471
Fix headerLines chunking bug for #239
2014-03-30 08:45:41 +03:00