Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F20950613: D2995.diff
Tue, Jan 13, 14:04
Unknown Object (File)
Sun, Jan 11, 18:16
Unknown Object (File)
Fri, Jan 9, 16:34
Unknown Object (File)
Fri, Jan 9, 07:18
Unknown Object (File)
Thu, Jan 8, 09:26
Unknown Object (File)
Mon, Jan 5, 14:09
Unknown Object (File)
Sun, Jan 4, 19:27
Unknown Object (File)
Sat, Jan 3, 22: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