RawPostDataException: You cannot access body after reading from request's data stream
1. RawPostDataException: You cannot access body after reading from request’s data stream
问题起因
在django项目中自定义中间件的process_response方法中使用request.body获取请求体等数据
问题原因:
Django只允许读取一次POST正文,多次读取时,会报该错误
...
原创
2020-03-23 02:26:41 ·
2949 阅读 ·
0 评论