Skip to content
This repository
Browse code

add agent support

  • Loading branch information...
commit 64fe9a7723d205bfd2cfd287f04c26b6c2454067 1 parent f281f12
Jonathan Leibiusky authored September 15, 2011

Showing 2 changed files with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. 1  lib/aws.js
  2. 6  lib/sqs.js
1  lib/aws.js
@@ -59,6 +59,7 @@ var genericAWSClient = function(obj) {
59 59
     var options = {
60 60
       host: obj.host,
61 61
       path: obj.path,
  62
+      agent: obj.agent,
62 63
       method: 'POST',
63 64
       headers: headers
64 65
     };
6  lib/sqs.js
@@ -2,10 +2,10 @@ exports.init = function(genericAWSClient) {
2 2
   // Creates a Simple Queue Service API client
3 3
   var createSQSClient = function (accessKeyId, secretAccessKey, options) {
4 4
     options = options || {};
5  
-
6 5
     var client = SQSClient({
7 6
       host: options.host || "sqs.us-east-1.amazonaws.com",
8 7
       path: options.path || "/",
  8
+      agent: options.agent,
9 9
       accessKeyId: accessKeyId,
10 10
       secretAccessKey: secretAccessKey,
11 11
       secure: options.secure,
@@ -17,7 +17,7 @@ exports.init = function(genericAWSClient) {
17 17
   var SQSClient = function(obj) {
18 18
     var aws = genericAWSClient({
19 19
       host: obj.host, path: obj.path, accessKeyId: obj.accessKeyId,
20  
-      secretAccessKey: obj.secretAccessKey, secure: obj.secure
  20
+      secretAccessKey: obj.secretAccessKey, secure: obj.secure, agent:obj.agent
21 21
     })
22 22
     obj.call = function(action, query, callback) {
23 23
       query["Action"] = action
@@ -29,4 +29,4 @@ exports.init = function(genericAWSClient) {
29 29
     return obj;
30 30
   }
31 31
   return createSQSClient;
32  
-}
  32
+}

0 notes on commit 64fe9a7

Please sign in to comment.
Something went wrong with that request. Please try again.