Fix:‘TypeError: responseCookies.replace is not a function’ #68
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
作者你好:



在使用weapp-cookie库中遇到一个问题,已经查询到问题原因并进行兼容处理
是在uniapp项目中使用编译到微信小程序,调用
uploadFile
在ios真机下取到的responseCookies
是一个数组,在调用replace
出错了经过正常调试发现,接口的
response
确实返回了三个Set-Cookie
,但是在大部分情机型况下responseCookies都是‘字符串+,’拼接好,但在在ios真机下没有进行字符串处理所以我们这里手动调用一下toString()
就可以了