Python bottle module causes “Error: 413 Request Entity Too Large”

后端 未结 1 1562
萌比男神i
萌比男神i 2020-12-30 01:15

Using Python\'s module bottle, I\'m getting HTTP 413 error when posting requests of body size > bottle\'s internal MEMFILE_MAX constan

1条回答
  •  生来不讨喜
    2020-12-30 01:36

    You should be able to just

    import bottle
    bottle.BaseRequest.MEMFILE_MAX = 1024 * 1024 # (or whatever you want)
    

    This appears to be the only way based on the source

    0 讨论(0)
提交回复
热议问题