diff options
Diffstat (limited to 'lib/net/http.rb')
-rw-r--r-- | lib/net/http.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index b0334a2757..90b4495380 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -1640,11 +1640,19 @@ module Net # :nodoc: # def response #:nodoc: + warn "#{caller(1)[0]}: warning: HTTPResponse#response is obsolete" if $VERBOSE self end - alias header response #:nodoc: - alias read_header response #:nodoc: + def header #:nodoc: + warn "#{caller(1)[0]}: warning: HTTPResponse#header is obsolete" if $VERBOSE + self + end + + def read_header #:nodoc: + warn "#{caller(1)[0]}: warning: HTTPResponse#read_header is obsolete" if $VERBOSE + self + end # # body |