我正在使用PrestaShopWebservice库访问Prestashiop 1.7 Web服务,我一直def censor(sentence, arr)
if arr.include? sentence.downcase
sentence.downcase.gsub(/[aeiou]/, "*")
end
end
puts censor("Gosh, it's so hot", ["gosh", "hot", "shoot", "so"])
#expected_output = "G*sh, it's s* h*t"
,但是可以在浏览器中访问它。
我已经尝试添加:
get 401 Unauthorized
在SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
中
还尝试串联.htaccess
但无济于事
&ws_key="token"