0
我試圖從fetch發佈請求中獲取響應頭。然而,它正在混淆了幾個標題。React-Native響應頭沒有被分開
陣營本地代碼
fetch(...).then((response) => {
console.log(response.headers);
響應
{ date: [ 'Tue, 10 Jan 2017 20:21:54 GMT\nServer: Werkzeug/0.11.15 Python/3.6.0\ntoken: LrPyaQGfL2egGz521TDMUQ==\nContent-Length: 10\nContent-Type: text/html; charset=utf-8' ],'content-type': [ 'text/plain;charset=UTF-8' ] } }
此代碼工作過,但我建立了我的環境,在新的筆記本電腦,和所有突然發生這種情況。
我已驗證在提示中的http響應中有crlf字符。