♻ refactor(curlrc): Seperate file -> inline text
This commit is contained in:
parent
c7194ff811
commit
1f47b2c445
2 changed files with 15 additions and 12 deletions
|
@ -1,11 +0,0 @@
|
||||||
# limit the timeout in seconds
|
|
||||||
connect-timeout = 60
|
|
||||||
|
|
||||||
# follow HTTP redirects
|
|
||||||
location
|
|
||||||
|
|
||||||
# show error messages
|
|
||||||
show-error
|
|
||||||
|
|
||||||
# Disguise as IE 9 on Windows 7
|
|
||||||
user-agent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"
|
|
|
@ -6,7 +6,21 @@
|
||||||
|
|
||||||
xdg.configFile.".curlrc" = {
|
xdg.configFile.".curlrc" = {
|
||||||
enable = true;
|
enable = true;
|
||||||
source = ./.curlrc;
|
|
||||||
target = ".curlrc";
|
target = ".curlrc";
|
||||||
|
|
||||||
|
text = # conf
|
||||||
|
''
|
||||||
|
# Limit the timeout in seconds.
|
||||||
|
connect-timeout = 60
|
||||||
|
|
||||||
|
# Follow HTTP redirects.
|
||||||
|
location
|
||||||
|
|
||||||
|
# Show error messages.
|
||||||
|
show-error
|
||||||
|
|
||||||
|
# Disguise as IE 9 on Windows 7.
|
||||||
|
user-agent = "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue