Uploaded file gets corrupted when using GRPC custom middleware in tyk-gateway 2.7.0

Actually it’s not that the file is corrupted, in fact body is empty if I send a file.

curl -X POST \
  http://localhost/test \
  -H 'Authorization: Bearer abcd' \
  -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
  -F type=test \
  -F document=@/tmp/example.jpg

I’m not 100% sure but it seems raw_body is not used to rebuild body.
If I remove the document field from my request, body is filled.

Am I supposed to rebuild body from raw_body in my custom middleware?