Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Original Issue: #993 The exception occurs when OkHttp and we try to read request body twice, while it can be only read once. Hence, we will read request body after it is processed by OkHttp. Tradeoff for this is requests on Flipper will not appear immediately after fired, but they will appear together with their responses. There are ways we can get rid of the tradeoff. For example, as demonstrated in D21167308, OkHttp ^3.14.0 contains method `isOneShot`, which can be used to check if we can read request body more than once. Another example is to change server side to accept nullable variable so that we can send request body and others separately. Reviewed By: passy Differential Revision: D21175341 fbshipit-source-id: 053789a2c2f28cd8149ea1bb36fd0cfe1c668df7
- Loading branch information