Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F3303672: D2995.diff
Wed, Jul 3, 05:35
F3303551: D2995.id7650.diff
Wed, Jul 3, 04:50
F3301745: D2995.id7648.diff
Tue, Jul 2, 20:27
Unknown Object (File)
Mon, Jul 1, 11:45
Unknown Object (File)
Fri, Jun 28, 13:07
Unknown Object (File)
Thu, Jun 27, 10:59
Unknown Object (File)
Thu, Jun 27, 10:24
Unknown Object (File)
Mon, Jun 24, 13:58
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