Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 6, 16:10
Unknown Object (File)
Thu, Nov 6, 05:08
Unknown Object (File)
Wed, Nov 5, 18:12
Unknown Object (File)
Wed, Nov 5, 06:30
Unknown Object (File)
Wed, Nov 5, 04:52
Unknown Object (File)
Mon, Nov 3, 03:58
Unknown Object (File)
Mon, Nov 3, 01:57
Unknown Object (File)
Sun, Nov 2, 12: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