Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F23366591: D2995.id7648.diff
Wed, Feb 4, 13:41
Unknown Object (File)
Tue, Feb 3, 13:09
Unknown Object (File)
Tue, Feb 3, 06:44
Unknown Object (File)
Thu, Jan 29, 13:09
Unknown Object (File)
Wed, Jan 28, 15:38
Unknown Object (File)
Sun, Jan 25, 16:09
Unknown Object (File)
Fri, Jan 23, 12:52
Unknown Object (File)
Thu, Jan 22, 13:08
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