1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00

Call File.expand_path to expand ~ in ~/.restclientrc

This commit is contained in:
Mike Fletcher 2010-05-09 11:04:34 -04:00 committed by Julien Kirch
parent 723b8e38df
commit 5e14cebb95
2 changed files with 2 additions and 1 deletions

View file

@ -77,7 +77,7 @@ if File.exists? ".irbrc"
ENV['IRBRC'] = ".irbrc"
end
if File.exists?(rcfile = "~/.restclientrc")
if File.exists?( File.expand_path(rcfile = "~/.restclientrc") )
load(rcfile)
end

View file

@ -3,6 +3,7 @@
- only converts headers keys which are Symbols
- use CGI for cookie parsing instead of custom code
- unescape user and password before using them (patch provided by Lars Gierth)
- expand ~ in ~/.restclientrc (patch provided by Mike Fletcher)
# 1.5.0