mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
deprecate http.cat
This commit is contained in:
@@ -1628,6 +1628,8 @@ exports.cat = function(url, encoding_, headers_) {
|
||||
headers = {},
|
||||
callback = null;
|
||||
|
||||
console.error("http.cat will be removed in the near future. use http.get");
|
||||
|
||||
// parse the arguments for the various options... very ugly
|
||||
if (typeof(arguments[1]) == 'string') {
|
||||
encoding = arguments[1];
|
||||
|
||||
Reference in New Issue
Block a user