Android HttpResponse - Content has been consumed

前端 未结 5 961
南方客
南方客 2021-01-12 19:19

The method below falls over when reading the HttpResponse with the error: \"Content has been consumed\". I understand that the content can only be consumed once but I get t

5条回答
  •  忘掉有多难
    2021-01-12 20:01

    This can happen if you're consuming the entity more than once, in a similar call to this:

    EntityUtils.toString(entity, HTTP.UTF_8))
    

提交回复
热议问题