Vumela i-node-fetch ikhethe i-proxy agent ngemuva kwe-redirect
Sebenzisa i-agent function kuma-destination e-HTTP ne-HTTPS ukuze i-redirect ikwazi ukukhetha i-proxy agent efanele.
I-URL yokuqala ingaba yi-HTTPS kanti i-URL ekhishwe nge-redirect ingaba yi-HTTP. Khetha i-agent ngokwe-destination yesicelo ngasinye, esikhundleni sokubopha i-agent eyodwa ku-URL yokuqala.
Funda isihloko saseNgisi lapha: Let node-fetch Choose the Proxy Agent After a Redirect.