Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jul 17, 04:35
Unknown Object (File)
Thu, Jul 10, 18:23
Unknown Object (File)
Thu, Jul 10, 17:36
Unknown Object (File)
Thu, Jul 10, 14:24
Unknown Object (File)
Wed, Jul 9, 18:14
Unknown Object (File)
Wed, Jul 9, 06:54
Unknown Object (File)
Mon, Jul 7, 23:47
Unknown Object (File)
Mon, Jul 7, 23:44
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