This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch 9.1.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.1.x by this push:
     new cc6bf7d  Fix a bug in tspush that pushes corrupted content to cache 
(#7696)
cc6bf7d is described below

commit cc6bf7d4072ec2ef1c088d678c5e3a01cafe5c5a
Author: midchildan <[email protected]>
AuthorDate: Tue Apr 13 04:27:06 2021 +0900

    Fix a bug in tspush that pushes corrupted content to cache (#7696)
    
    (cherry picked from commit b08215272872f452787915cd3a8e0b0ea0b88385)
---
 tools/tspush | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/tspush b/tools/tspush
index 36a65e2..a16f709 100755
--- a/tools/tspush
+++ b/tools/tspush
@@ -50,8 +50,8 @@ HELP
 die ("--file and --url must be given!" ) unless ( $f_name && $url) ;
 
 open (my $fh, '<', $f_name) or die $!;
+chomp (my $f_type = `file -b --mime $f_name`);
 my $uri = URI->new($url);
-my $f_type = `file -b --mime $f_name`;
 
 #
 # read the file in one go:

Reply via email to