File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ function call_curl() {
10
10
local url=$1
11
11
local header=$2
12
12
shift 2
13
- HTTP_RESPONSE=$( http_proxy= " " curl --silent --write-out " HTTPSTATUS:%{http_code}" -H " $header " " ${url} " $@ )
13
+ HTTP_RESPONSE=$( curl --silent --write-out " HTTPSTATUS:%{http_code}" -H " $header " " ${url} " $@ )
14
14
HTTP_STATUS=$( echo $HTTP_RESPONSE | tr -d ' \n' | sed -e ' s/.*HTTPSTATUS://' )
15
15
RESPONSE_BODY=$( echo $HTTP_RESPONSE | sed -e ' s/HTTPSTATUS\:.*//g' )
16
16
}
@@ -34,7 +34,7 @@ function _invoke_curl() {
34
34
;;
35
35
esac
36
36
37
- HTTP_RESPONSE=$( http_proxy= " " curl --silent --write-out " HTTPSTATUS:%{http_code}" -X POST -H " $header " " ${url} " $@ )
37
+ HTTP_RESPONSE=$( curl --silent --write-out " HTTPSTATUS:%{http_code}" -X POST -H " $header " " ${url} " $@ )
38
38
HTTP_STATUS=$( echo $HTTP_RESPONSE | tr -d ' \n' | sed -e ' s/.*HTTPSTATUS://' )
39
39
RESPONSE_BODY=$( echo $HTTP_RESPONSE | sed -e ' s/HTTPSTATUS\:.*//g' )
40
40
}
You can’t perform that action at this time.
0 commit comments