Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F10871592: D2995.id7648.diff
Sat, Aug 2, 11:16
F10870652: D2995.id7648.diff
Sat, Aug 2, 07:15
F10870596: D2995.id.diff
Sat, Aug 2, 06:53
Unknown Object (File)
Thu, Jul 31, 17:47
Unknown Object (File)
Wed, Jul 30, 19:12
Unknown Object (File)
Tue, Jul 29, 18:21
Unknown Object (File)
Mon, Jul 28, 00:29
Unknown Object (File)
Thu, Jul 24, 18:07
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