Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F6580628: D2995.diff
Fri, Apr 4, 02:13
F6580243: D2995.id.diff
Fri, Apr 4, 02:06
F6579108: D2995.id7650.diff
Fri, Apr 4, 01:46
F6578784: D2995.id7648.diff
Fri, Apr 4, 01:10
Unknown Object (File)
Wed, Apr 2, 15:41
Unknown Object (File)
Wed, Apr 2, 10:04
Unknown Object (File)
Mon, Mar 31, 02:22
Unknown Object (File)
Sat, Mar 29, 22:29
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