Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F53305516: D2995.id7650.diff
Thu, Oct 8, 10:57
F53228747: D2995.id7648.diff
Wed, Oct 7, 21:35
Unknown Object (File)
Wed, Oct 7, 09:37
Unknown Object (File)
Wed, Oct 7, 08:14
Unknown Object (File)
Tue, Oct 6, 18:37
Unknown Object (File)
Tue, Oct 6, 15:19
Unknown Object (File)
Fri, Oct 2, 07:03
Unknown Object (File)
Thu, Oct 1, 07:32
Subscribers
None

Details

Summary

Rocket allows in debug to read request body as a string,
but not in production. Switching to RequestBody implementation
provided by Limiting Factor for such cases.

This change fixes the following issue:

error[E0277]: the trait bound `std::string::String: FromDataSimple`
is not satisfied

Fixes T1827.

Test Plan

Fire HTTP requests to deploy/init/update

Diff Detail

Repository
rALK Alkane
Lint
Lint Not Applicable
Unit
Tests Not Applicable