Commit Graph

576 Commits

Author SHA1 Message Date
David Frank 813cb479a6 changelog update 2016-09-24 17:53:04 +08:00
David Frank 43e06ca422 add catch example to readme 2016-09-24 17:21:40 +08: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 3e53f0c2c8 1.6.1 2016-09-11 23:37:00 +08:00
David Frank ffddec0ad2 fix test: buffer.alloc is not available for older node.js release 2016-09-11 23:34:50 +08:00
David Frank 788c4627a7 make sure we default to 200 on new response 2016-09-11 23:17:09 +08:00
David Frank 6a0dd463b0 update limit document 2016-09-11 23:08:11 +08:00
David Frank bdd80e45fd changelog update 2016-09-11 22:37:42 +08:00
David Frank f17aa9af1f call tostring on plain object body 2016-09-11 22:33:22 +08:00
David Frank e4a7da8326 making sure headers will drop buffer value 2016-09-11 22:18:43 +08:00
David Frank 515525a388 update limit document on cookie headers 2016-09-11 22:13:00 +08:00
David Frank 067ea8190a changelog update 2016-09-11 22:05:32 +08:00
David Frank 6bac50f1da fix bug related to request wrapping, where counter adopts follow value incorrectly 2016-09-11 22:02:39 +08:00
David Frank e574b497d5 make sure example is working 2016-08-16 20:22:18 +08:00
David Frank 8fc30a8d8c Merge pull request #148 from jimmywarting/patch-2
update readme with binary file/buffer examples
2016-08-16 19:27:37 +08:00
Jimmy Karl Roland Wärting d8c6969736 added 2 binary exemple
Got to many "how do i handle binary/images" issues
2016-08-16 11:40:31 +02:00
David Frank 4e455a4185 1.6.0 2016-08-03 18:08:24 +08:00
David Frank ed9a72d84e Merge pull request #141 from bitinn/august-bugfix
August bugfix, see commit for details
2016-08-03 18:07:51 +08:00
David Frank 8cce714b48 changelog and documentation update 2016-08-03 18:02:26 +08:00
David Frank d24ec6f7c4 handle raw deflate response from old servers 2016-08-03 17:31:46 +08:00
David Frank c82e4dad13 mark non-spec api 2016-08-03 14:05:59 +08:00
David Frank 028b8f0e4b skip content encoding detection for non-html/xml/plain text response 2016-08-03 14:03:22 +08:00
David Frank 49363411f8 add a much-requested buffer() method for convenience 2016-08-03 13:27:32 +08:00
David Frank 140ae57f77 support buffer for request body 2016-08-03 13:07:47 +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 952aa2a135 Merge pull request #132 from wheresrhys/patch-1
default to 200 response status
2016-07-13 13:01:47 +08:00
Rhys Evans c3e05ff1f7 default to 200 response status 2016-07-13 00:28:36 +01:00
David Frank b46c5ea9ee 1.5.3 2016-05-26 02:54:22 +08:00
David Frank d47549eab1 Merge pull request #121 from bitinn/bugfix
closes #115 #105 #102 #101 #43
2016-05-26 02:52:47 +08:00
David Frank 21e1d81ff0 changelog update 2016-05-26 02:27:25 +08:00
David Frank 30b95dc6b8 request no longer throw errors 2016-05-26 02:20:38 +08:00
David Frank 2a6e656c1d allow any url for new request, but still reject non-http url in fetch 2016-05-26 02:19:16 +08:00
David Frank a2607719ce send delete body with content-length 2016-05-26 02:00:25 +08:00
David Frank 8a6213198b avoid calling formdata getLengthSync when it has stream as fields 2016-05-26 01:37:36 +08:00
David Frank 419597fe13 user should be able to resolve cloned body before original body 2016-05-26 01:01:56 +08:00
David Frank 8b8309fe0f handle gzip encoding with 204 and 304 responses 2016-05-26 00:46:11 +08:00
David Frank e1fcc2315a 1.5.2 2016-05-06 20:02:14 +08:00
David Frank b12b630798 changelog update 2016-05-06 20:02:07 +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 02def98f5c Merge pull request #104 from macbre/patch-1
request.js: remove unneeded input.agent
2016-04-13 13:13:50 +08:00
Maciej Brencz c8a895eb5e request.js: remove unneeded input.agent 2016-04-12 23:59:12 +02:00
David Frank 2c35103eae fix changelog 2016-04-13 02:59:43 +08:00
David Frank 3f24c09005 1.5.1 2016-04-13 02:58:35 +08:00
David Frank 311a8d5951 fix manual redirect mode 2016-04-13 02:58:04 +08:00
David Frank 1cd0a5c570 Update doc to show redirect mode 2016-04-06 03:25:16 +08:00
David Frank 321d800750 1.5.0 2016-04-06 03:00:04 +08:00
David Frank 7bdc41f64a Merge pull request #100 from bitinn/prepare-new-release
Prepare release v1.5.0
2016-04-06 02:54:00 +08:00
David Frank 396004c658 changelog update 2016-04-06 02:49:23 +08:00
David Frank 64d798dd83 add basic support for redirect mode 2016-04-06 02:47:23 +08:00