Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F25139782: D2995.diff
Wed, Apr 1, 07:20
F25132764: D2995.id7650.diff
Tue, Mar 31, 23:54
Unknown Object (File)
Tue, Mar 31, 00:46
Unknown Object (File)
Mon, Mar 30, 14:50
Unknown Object (File)
Mon, Mar 30, 10:54
Unknown Object (File)
Mon, Mar 30, 07:16
Unknown Object (File)
Sun, Mar 29, 11:35
Unknown Object (File)
Sun, Mar 29, 00:26
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