Jared Kantrowitz
432cd8a31e
remove `encoding` as a dependency, throw detailed Error if not installed ( #302 )
...
* remove `encoding` as a dependency, throw descriptive Error if textConverted() is used without it in env
* remove rollup ext dep resolution since we don't need it
* switch to programmer error, rm unneeded test conditions, bump timeout for slow CI
* more kill `encoding` dep PR changes
keep blank "dependencies" prop in package.json so rollup's external config func doesn't seize
add ext dep checks back to the rollup config
no implicit var
clarify test comment
* [squash] alter travis cfg to test with and without `encoding`, various
fix devDeps
separate `encoding` tests to their own block
* [squash] fixing nits
* [squash] ci: full matrix of form-data versions and encoding existence
and nits
2017-07-02 12:32:48 -04:00
David Frank
c24d591794
fix test server for node 8, which changes keepalive connection handling
2017-06-03 18:01:13 +08:00
Grzegorz Graczyk
a1e76b97e1
More lenient gzip decompression ( #239 )
...
Ref: https://github.com/nodejs/node/issues/8701#issuecomment-268224481
Ref: https://github.com/request/request/issues/2482
Ref: https://github.com/request/request/pull/2492
Fixes: http://www.mantovanispa.it
Fixes : #139
2017-02-27 10:02:45 -08:00
Timothy Gu
56f786f896
Update deps and remove 0.12 compat
2017-02-26 14:12:45 -08:00
Timothy Gu
5fe80dba06
Remove dependency on babel-polyfill
...
This way the tests can better emulate the real Node.js environment.
2016-11-05 10:26:30 -07:00
Timothy Gu
72d34af6e2
Start test server when executed directly
2016-11-05 09:39:01 -07:00
Timothy Gu
838071247d
Convert all files to ES2015 ( #182 )
...
Elements of this commit come from #140 by @gwicke.
2016-10-10 11:50:04 -07:00
David Frank
e926483448
minor format fix and comments
2016-09-24 17:12:18 +08:00
Dan Dascalescu
95b58936b8
Return empty .json() object on 204. Fix #165 . ( #166 )
...
Handle an edge case where 204 No Content response body is empty, but node-fetch trying to parse the empty body as-is.
2016-09-24 17:06:18 +08:00
David Frank
d24ec6f7c4
handle raw deflate response from old servers
2016-08-03 17:31:46 +08:00
David Frank
3c05442699
HEAD request does not need to process body with decompression
2016-08-03 12:55:58 +08:00
David Frank
8b8309fe0f
handle gzip encoding with 204 and 304 responses
2016-05-26 00:46:11 +08:00
David Frank
7f68577de4
let nodejs handle the connection pool when agent is passed
2016-04-30 13:19:08 +08:00
David Frank
4b589bc147
node v0.10 allow header support is weird, attempt to fix test
2016-03-19 18:52:13 +08:00
David Frank
827ce8fa31
fix tests for older node
2016-03-19 18:36:53 +08:00
David Frank
9a90e7d0b9
test for options support
2016-03-19 18:24:08 +08:00
David Frank
362aa087ca
clone method support
2016-03-19 18:06:33 +08:00
David Frank
00fa867914
fix chunked encoding support for character encoding conversion, thx @dsuket PR #50
2016-03-19 16:17:14 +08:00
David Frank
8f02a2b77c
handle body stream error
2015-09-28 21:58:45 +08:00
David Frank
565ec4b35a
additional tests for the new form-data integration
2015-07-22 15:40:52 +08:00
David Frank
b64073c64c
update comment to explain hack, make use of inpsect route in test, and update changelog
2015-07-11 19:38:26 +08:00
Matthew Andrews
e98f22b3ba
Add failing test for the ability to set a custom header
2015-07-11 10:37:51 +01:00
David Frank
e09dfae0a5
timeout on body and clear timeout internally
2015-04-17 13:26:55 +08:00
David Frank
3f59e6e964
added test cases for regex
2015-03-24 12:31:04 +08:00
David Frank
48a0a9a2f2
xml encoding detection, response size limit
2015-01-28 22:56:25 +08:00
David Frank
60d232d66a
better test coverage on edge case
2015-01-28 13:01:10 +08:00
David Frank
ff81206c4a
better test coverage
2015-01-28 01:00:53 +08:00
David Frank
53a763beab
more tests
2015-01-27 23:33:06 +08:00
David Frank
93a983d815
basic fetch feature done
2015-01-27 01:46:32 +08:00
David Frank
f57ebe10df
basic streaming body
2015-01-26 21:58:52 +08:00
David Frank
78853fc544
add test cases
2015-01-26 21:28:23 +08:00