node.js - npm request module doesn't follow 301 redirects correctly -


i have 2 urls: http://tbphoto3.bababian.com/upload7/fuguirenshen/201606/001169212894_m.jpg 301 redirected , http://t.shuaishou.com/get/168062675 302 redirected.

but when request 2 js request.defaults({ proxy: 'my-proxy-address' }) 302 redirect returned final content. 301 redirect url returns body lenth=0.

if remove proxy option, both urls followed , retrieved correctly.

could me fix please?


Comments

Popular posts from this blog

How to use SUM() in MySQL for calculated values -

ios - IBOutlet for image button not correctly referencing button after recreating outlet -

java - AEM: 403 Forbidden occurs when call a Post servlet -