You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sdap.apache.org by fg...@apache.org on 2019/03/25 17:31:01 UTC

[incubator-sdap-edge] branch master updated: SDAP-169 Update passthrough plugin headers (#2)

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

fgreg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-sdap-edge.git


The following commit(s) were added to refs/heads/master by this push:
     new 182a9b2  SDAP-169 Update passthrough plugin headers (#2)
182a9b2 is described below

commit 182a9b2cce78f423add350a51c5eaa3efe0ccdeb
Author: Maya DeBellis <ma...@gmail.com>
AuthorDate: Mon Mar 25 10:30:57 2019 -0700

    SDAP-169 Update passthrough plugin headers (#2)
    
    * setting default headers for passthrough
    
    * setting default headers for passthrough
    
    * add ucar
---
 src/main/python/libraries/edge/httputility.py      | 2 +-
 src/main/python/plugins/passthrough/pt/plugin.conf | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/python/libraries/edge/httputility.py b/src/main/python/libraries/edge/httputility.py
index d3fd650..e9cdb30 100644
--- a/src/main/python/libraries/edge/httputility.py
+++ b/src/main/python/libraries/edge/httputility.py
@@ -2,7 +2,7 @@ import tornado.httpclient
 
 class HttpUtility(object):
     def getResponse(self, url, callback, body=None, headers=None):
-        requestHeaders = {'Connection': 'close'}
+        requestHeaders = {'Connection': 'close', 'User-Agent': 'Tornado', "Accept": "*"}
         if headers is not None:
             requestHeaders.update(headers)
         if body is not None:
diff --git a/src/main/python/plugins/passthrough/pt/plugin.conf b/src/main/python/plugins/passthrough/pt/plugin.conf
index 181a0f2..ea8d237 100644
--- a/src/main/python/plugins/passthrough/pt/plugin.conf
+++ b/src/main/python/plugins/passthrough/pt/plugin.conf
@@ -1,2 +1,2 @@
 [service]
-allow=localhost:9200, msas-es.jpl.nasa.gov
+allow=localhost:8890,doms.coaps.fsu.edu,rda-data.ucar.edu:8890