This is an automated email from the ASF dual-hosted git repository.
zwoop pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 152d26e Fix a bug in tspush that pushes corrupted content to cache
(#7696)
152d26e is described below
commit 152d26e169a54e18e0801de2f8790cb478421e6b
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: