File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ RUN echo "Using PGSTAC Version ${PGSTAC_VERSION}"
55
66WORKDIR /tmp
77
8- RUN pip install requests psycopg[binary,pool] pypgstac==${PGSTAC_VERSION} -t /asset
8+ RUN pip install httpx psycopg[binary,pool] pypgstac==${PGSTAC_VERSION} -t /asset
99
1010COPY runtime/handler.py /asset/handler.py
1111
Original file line number Diff line number Diff line change 66
77import boto3
88import psycopg
9- import requests
9+ import httpx
1010from psycopg import sql
1111from psycopg .conninfo import make_conninfo
1212from pypgstac .db import PgstacDB
@@ -58,10 +58,10 @@ def send(
5858 headers = {"content-type" : "" , "content-length" : str (len (json_responseBody ))}
5959
6060 try :
61- response = requests .put (responseUrl , data = json_responseBody , headers = headers )
61+ response = httpx .put (responseUrl , data = json_responseBody , headers = headers )
6262 print ("Status code: " + response .reason )
6363 except Exception as e :
64- print ("send(..) failed executing requests .put(..): " + str (e ))
64+ print ("send(..) failed executing httpx .put(..): " + str (e ))
6565
6666
6767def get_secret (secret_name ):
You can’t perform that action at this time.
0 commit comments