Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F24651754: D2995.diff
Tue, Mar 3, 09:52
F24650159: D2995.diff
Tue, Mar 3, 08:21
F24648233: D2995.diff
Tue, Mar 3, 06:25
F24647416: D2995.id7648.diff
Tue, Mar 3, 05:48
Unknown Object (File)
Sun, Mar 1, 15:16
Unknown Object (File)
Sun, Mar 1, 11:50
Unknown Object (File)
Sun, Mar 1, 11:35
Unknown Object (File)
Sun, Mar 1, 09:24
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