deprecate http.cat
This commit is contained in:
parent
b309192ffd
commit
360885a7e9
@ -1628,6 +1628,8 @@ exports.cat = function(url, encoding_, headers_) {
|
|||||||
headers = {},
|
headers = {},
|
||||||
callback = null;
|
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
|
// parse the arguments for the various options... very ugly
|
||||||
if (typeof(arguments[1]) == 'string') {
|
if (typeof(arguments[1]) == 'string') {
|
||||||
encoding = arguments[1];
|
encoding = arguments[1];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user