gf icon indicating copy to clipboard operation
gf copied to clipboard

http文件上传BUG修复

Open caitou2019 opened this issue 2 years ago • 1 comments

c.header中可能包含有原来的Content-Type请求头, 如:Content-Type = application/json; 然后如果是文件上传的请求的话, 请求头会被修改为multipart/form-data; boundary=, 这是正确的. 但是到了我修改的这个地方, 原来的请求头Content-Type = application/json会覆盖掉修改后的Content-Type = multipart/form-data; boundary=, 所以这个地方要过滤掉原来的值

caitou2019 avatar Jul 28 '22 02:07 caitou2019

这样写不行吧。其它header怎么办?又不只有一种header

hailaz avatar Jul 28 '22 02:07 hailaz

No activity for more than one month.

gqcn avatar Oct 09 '22 11:10 gqcn