Open ziyacivan opened 5 months ago
Attention: Patch coverage is 80.00000%
with 2 lines
in your changes are missing coverage. Please review.
Project coverage is 86.56%. Comparing base (
5577dd3
) to head (212b987
). Report is 2 commits behind head on master.
Files | Patch % | Lines |
---|---|---|
silk/model_factory.py | 80.00% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Just found out six different test are failing, I do have to fix them by tomorrow. By the way, you are welcome to update the test cases if you want to.
Title: Add Support for Multipart/Form-Data Requests Description: I've encountered an issue when Silk attempts to handle
multipart/form-data
requests, specifically when trying to accessrequest.body
directly. This operation triggers aRawPostDataException
because Django consumes the stream upon parsing the multipart data, making it inaccessible afterwards.To address this, I've implemented a check for
multipart/form-data
content type within the request handling logic. When such a content type is detected, the code now properly handles form data and file information usingrequest.POST
andrequest.FILES
, avoiding direct access torequest.body
. This allows Silk to gracefully handle and log multipart requests without raising exceptions.