File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 178
178
179
179
if [ -z " $_RESTY_HOST " ] ; then _RESTY_HOST=$( cat " $host " 2> /dev/null) ; fi
180
180
181
- if [[ ! " $RESTY_NO_PRESERVE_PATH " =~ ^true \| yes$ ] ]; then
181
+ if [ " $RESTY_NO_PRESERVE_PATH " != " true " ] && [ " $RESTY_NO_PRESERVE_PATH " != " yes" ]; then
182
182
__path=" ${_path:- ${_RESTY_PATH} } "
183
183
_RESTY_PATH=" ${__path} "
184
184
else
239
239
fi
240
240
if [ -n " $out " ]; then out=$( echo " $out " | eval " $display " ) ; fi
241
241
242
- if [[ " $display " =~ ^lynx\| ^elinks ]] ; then
242
+ if [[ " $display " =~ ^lynx ]] || [[ " $display " =~ ^elinks ]] ; then
243
243
out=$( echo " $out " | perl -e " \$ host='$( echo " $_RESTY_HOST " | sed ' s/^\(https*:\/\/[^\/*]*\).*$/\1/' ) ';" \
244
244
-e " $( cat << 'PERL '
245
245
@a=<>;
Original file line number Diff line number Diff line change @@ -196,7 +196,7 @@ describe "Resty"
196
196
GET /echo > /dev/null
197
197
assert equal " $_RESTY_PATH " " "
198
198
output=$( GET 2>&1 )
199
- assert equal " $output " ' {"statusCode":403,"error":"Forbidden"} '
199
+ assert grep " $output " ' {"statusCode":403'
200
200
RESTY_NO_PRESERVE_PATH=" no"
201
201
end
202
202
end
You can’t perform that action at this time.
0 commit comments