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 2016/11/11 15:11:08 UTC

[1/2] incubator-trafficcontrol git commit: send Content-Type in PUT request instead of using default_header

Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master 1c44df4d7 -> c7ec08196


send Content-Type in PUT request instead of using default_header


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/32a8f49f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/32a8f49f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/32a8f49f

Branch: refs/heads/master
Commit: 32a8f49f721ccb6f5ad54eca2979c84c50244c5b
Parents: 1c44df4
Author: Dave Neuman <ne...@apache.org>
Authored: Thu Nov 10 13:58:12 2016 -0700
Committer: Jeremy Mitchell <mi...@gmail.com>
Committed: Fri Nov 11 08:10:37 2016 -0700

----------------------------------------------------------------------
 traffic_ops/app/lib/Connection/RiakAdapter.pm | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/32a8f49f/traffic_ops/app/lib/Connection/RiakAdapter.pm
----------------------------------------------------------------------
diff --git a/traffic_ops/app/lib/Connection/RiakAdapter.pm b/traffic_ops/app/lib/Connection/RiakAdapter.pm
index 448619f..8a5afb0 100755
--- a/traffic_ops/app/lib/Connection/RiakAdapter.pm
+++ b/traffic_ops/app/lib/Connection/RiakAdapter.pm
@@ -96,12 +96,10 @@ sub put {
 	my $value        = shift || confess("Supply a value");
 	my $content_type = shift || 'application/json';
 
-	$ua->default_header( 'Content-Type' => $content_type );
-
 	my $key_uri = $self->get_key_uri( $bucket, $key );
 	my $fqdn = $self->get_url($key_uri);
 
-	return $ua->put( $fqdn, Content => $value );
+	return $ua->put( $fqdn, Content => $value, 'Content-Type'=> $content_type );
 }
 
 sub delete {


[2/2] incubator-trafficcontrol git commit: This closes #69

Posted by mi...@apache.org.
This closes #69


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/c7ec0819
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/c7ec0819
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/c7ec0819

Branch: refs/heads/master
Commit: c7ec08196fb051405bcae4a0171dfded6a9b3d35
Parents: 32a8f49
Author: Jeremy Mitchell <mi...@gmail.com>
Authored: Fri Nov 11 08:10:59 2016 -0700
Committer: Jeremy Mitchell <mi...@gmail.com>
Committed: Fri Nov 11 08:10:59 2016 -0700

----------------------------------------------------------------------

----------------------------------------------------------------------