tencentyun / cos-js-sdk-v5

腾讯云 COS JS SDK(XML API)
https://cloud.tencent.com/product/cos
MIT License
327 stars 566 forks source link

fix: getAllResponseHeaders 可能返回null #196

Closed kinka closed 11 months ago

kinka commented 11 months ago

根据

The XMLHttpRequest method getAllResponseHeaders() returns all the response headers, separated by CRLF, as a string, or returns null if no response has been received.ary/CRLF), as a string, or returns null if no response has been received.

该函数是可能返回为null的,不进行判断的话会导致异常。

livehigh commented 11 months ago

LGTM