You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by mi...@apache.org on 2019/04/16 13:27:37 UTC

[trafficcontrol] branch master updated: Fix TO API tests (#3490)

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

mitchell852 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git


The following commit(s) were added to refs/heads/master by this push:
     new c48e0a2  Fix TO API tests (#3490)
c48e0a2 is described below

commit c48e0a201fa858e99782f3086ca1c7b2c11ef0e4
Author: Rawlin Peters <Ra...@gmail.com>
AuthorDate: Tue Apr 16 07:27:32 2019 -0600

    Fix TO API tests (#3490)
    
    There are a couple syntax errors that were introduced in #3452 that are
    currently breaking the TO API tests.
---
 traffic_ops/app/lib/UI/DeliveryService.pm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/traffic_ops/app/lib/UI/DeliveryService.pm b/traffic_ops/app/lib/UI/DeliveryService.pm
index 97a5da7..f515f99 100644
--- a/traffic_ops/app/lib/UI/DeliveryService.pm
+++ b/traffic_ops/app/lib/UI/DeliveryService.pm
@@ -25,6 +25,10 @@ use Data::Dumper;
 use JSON;
 use UI::SslKeys;
 
+use constant {
+    RRH_CACHE_RANGE_REQUEST => 2,
+};
+
 sub index {
 	my $self = shift;
 
@@ -1438,7 +1442,7 @@ sub get_qstring_ignore_remap {
 		# ATS only lets you set cache key once per txn. 
 		# Add range header into the single setting of the cachekey
 		if ( $range_request_handling == RRH_CACHE_RANGE_REQUEST ) {
-		    $remap_text .= " \@pparam=--include-headers=Range"
+		    $remap_text .= " \@pparam=--include-headers=Range";
 		}	
 		return $remap_text;
 	}