Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
0d93015b
Commit
0d93015b
authored
Mar 30, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eget: add --no-content-disposition
parent
40068977
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
tools_eget
bin/tools_eget
+11
-3
No files found.
bin/tools_eget
View file @
0d93015b
...
@@ -317,7 +317,8 @@ AXELQ='' #-q
...
@@ -317,7 +317,8 @@ AXELQ='' #-q
# TODO: aria2c
# TODO: aria2c
# TODO:
# TODO:
WGETNAMEOPTIONS
=
'--content-disposition'
WGETNAMEOPTIONS
=
'--content-disposition'
CURLNAMEOPTIONS
=
'--remote-name --remote-time --remote-header-name'
CURLFILENAMEOPTIONS
=
'--remote-name --remote-time --remote-header-name'
CURLNAMEOPTIONS
=
'--remote-time --remote-header-name'
AXELNAMEOPTIONS
=
''
AXELNAMEOPTIONS
=
''
WGETRUSTSERVERNAMES
=
''
WGETRUSTSERVERNAMES
=
''
CURLTRUSTSERVERNAMES
=
''
CURLTRUSTSERVERNAMES
=
''
...
@@ -371,6 +372,7 @@ Options:
...
@@ -371,6 +372,7 @@ Options:
-q|--quiet - quiet mode
-q|--quiet - quiet mode
--verbose - verbose mode
--verbose - verbose mode
-k|--no-check-certificate - skip SSL certificate chain support
-k|--no-check-certificate - skip SSL certificate chain support
--no-content-disposition - skip Content-Disposition header
-H|--header - use <header> (X-Cache:1 for example)
-H|--header - use <header> (X-Cache:1 for example)
-U|-A|--user-agent - send browser like UserAgent
-U|-A|--user-agent - send browser like UserAgent
--compressed - request a compressed response and automatically decompress the content
--compressed - request a compressed response and automatically decompress the content
...
@@ -450,6 +452,12 @@ while [ -n "$1" ] ; do
...
@@ -450,6 +452,12 @@ while [ -n "$1" ] ; do
CURLNOSSLCHECK
=
'-k'
CURLNOSSLCHECK
=
'-k'
AXELNOSSLCHECK
=
'--insecure'
AXELNOSSLCHECK
=
'--insecure'
;;
;;
--no-content-disposition
)
WGETNAMEOPTIONS
=
''
CURLFILENAMEOPTIONS
=
''
CURLNAMEOPTIONS
=
''
AXELNAMEOPTIONS
=
''
;;
-H
|
--header
)
-H
|
--header
)
# TODO: error if header value contains spaces
# TODO: error if header value contains spaces
if
[
-z
"
$argvalue
"
]
;
then
if
[
-z
"
$argvalue
"
]
;
then
...
@@ -1143,11 +1151,11 @@ url_sget()
...
@@ -1143,11 +1151,11 @@ url_sget()
local
FILENAME
=
$(
url_get_filename
"
$URL
"
)
local
FILENAME
=
$(
url_get_filename
"
$URL
"
)
if
[
-n
"
$FILENAME
"
]
;
then
if
[
-n
"
$FILENAME
"
]
;
then
download_with_mirroring __curl
"
$URL
"
--remote-time
--remote-header-name
--output
"
$FILENAME
"
download_with_mirroring __curl
"
$URL
"
$CURLNAMEOPTIONS
--output
"
$FILENAME
"
return
return
fi
fi
download_with_mirroring __curl
"
$URL
"
$CURLNAMEOPTIONS
download_with_mirroring __curl
"
$URL
"
$CURL
FILE
NAMEOPTIONS
}
}
url_get_response
()
url_get_response
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment