Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F24502250: D2995.diff
Mon, Feb 23, 23:46
F24495982: D2995.id7648.diff
Mon, Feb 23, 14:10
Unknown Object (File)
Sat, Feb 21, 07:41
Unknown Object (File)
Sat, Feb 21, 07:34
Unknown Object (File)
Fri, Feb 20, 16:45
Unknown Object (File)
Fri, Feb 20, 16:38
Unknown Object (File)
Sat, Feb 14, 18:33
Unknown Object (File)
Fri, Feb 13, 07:36
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