Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F29592219: D2995.diff
Mon, May 18, 13:14
F29538783: D2995.id.diff
Mon, May 18, 05:15
F29538755: D2995.id7648.diff
Mon, May 18, 05:14
F29538668: D2995.id7650.diff
Mon, May 18, 05:14
Unknown Object (File)
Sat, May 16, 13:10
Unknown Object (File)
Thu, May 14, 22:12
Unknown Object (File)
Tue, May 12, 00:32
Unknown Object (File)
Sun, May 10, 08:00
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