Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F10844545: D2995.id7650.diff
Tue, Jul 29, 18:21
Unknown Object (File)
Mon, Jul 28, 00:29
Unknown Object (File)
Thu, Jul 24, 18:07
Unknown Object (File)
Thu, Jul 24, 11:34
Unknown Object (File)
Tue, Jul 22, 22:00
Unknown Object (File)
Tue, Jul 22, 11:06
Unknown Object (File)
Tue, Jul 22, 07:33
Unknown Object (File)
Mon, Jul 21, 16:30
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