hget: handle http contentencoding (compression)
This commit is contained in:
parent
0460e4be7d
commit
ab7fe19ae2
1 changed files with 9 additions and 0 deletions
|
@ -81,6 +81,15 @@ if(! ~ $s 0)
|
|||
exec cat >>$o
|
||||
exec cat >$o
|
||||
}
|
||||
c=`{cat $d/contentencoding >[2]/dev/null}
|
||||
switch($c){
|
||||
case *gzip*
|
||||
exec gunzip
|
||||
case *bzip2*
|
||||
exec bunzip2
|
||||
case *compress*
|
||||
exec uncompress
|
||||
}
|
||||
exec cat
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue