Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 26, 20:08
Unknown Object (File)
Mon, Aug 25, 19:32
Unknown Object (File)
Sun, Aug 24, 18:44
Unknown Object (File)
Sun, Aug 24, 12:31
Unknown Object (File)
Wed, Aug 20, 11:09
Unknown Object (File)
Wed, Aug 20, 08:31
Unknown Object (File)
Wed, Aug 20, 08:30
Unknown Object (File)
Tue, Aug 19, 15:57
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