下载数据时遇到到请求头过大的问题

下载数据时遇到到请求头过大的问题,第1张

下载数据时遇到到请求头过大的问题

springcloud项目钟,请求下载接口时报错如下:
org.apache.coyote.http11.HeadersTooLargeException: An attempt was made to write more data to the response headers than there was room available in the buffer. Increase maxHttpHeaderSize on the connector or write less data into the response headers

原因是请求头或者响应头数据太大导致,添加配置文件:

server.max-http-header-size=65546

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5709362.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存