Commit Graph

127 Commits

Author SHA1 Message Date
Kazu Yamamoto
74a9933c27 removing unnecessary imports. 2018-04-26 09:46:24 +09:00
Kazu Yamamoto
d43e4b1d4e comment out the "sanitizes header values" test case. 2018-01-19 19:28:01 +09:00
Kazu Yamamoto
bf7e638af7 using http-client for testing. 2018-01-19 16:39:10 +09:00
Kazu Yamamoto
b294f85b0f removing warnings. 2018-01-19 16:37:33 +09:00
Kazu Yamamoto
de1660f28f stopping using Network module to be obsoleted. 2018-01-19 16:35:20 +09:00
Kazu Yamamoto
05f5bb4483 commenting out the withFreePort test case. 2018-01-19 16:26:41 +09:00
Kazu Yamamoto
b9ab3ab4da unsetting http?_proxy for testing. 2017-11-17 12:11:16 +09:00
Michael Snoyman
508ee0145a
Revert "Add failing test case to demonstrate #644"
This reverts commit 661257ff6e.

I don't know how this commit made it to master, but #644 was determined
to be intentional behavior, so the failing test case should not be
included.
2017-11-07 18:10:07 +02:00
Michael Snoyman
661257ff6e
Add failing test case to demonstrate #644 2017-08-20 10:06:56 +03:00
Kazu Yamamoto
9885aa979b using close instead of sClose. 2017-05-30 16:36:00 +09:00
Kazu Yamamoto
78022f960c test cases for addHeader and fix (#619) 2017-05-09 15:30:05 +09:00
Kazu Yamamoto
875dd7fcf4 test cases for addServer and fix (#619). 2017-05-09 13:43:04 +09:00
Michael Snoyman
925023c9a1
Fix test compilation 2017-04-12 13:47:16 +03:00
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