Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F33005592: D2995.id.diff
Sun, Jun 14, 04:54
Unknown Object (File)
Sat, Jun 13, 01:33
Unknown Object (File)
Tue, Jun 9, 23:47
Unknown Object (File)
Mon, Jun 8, 07:49
Unknown Object (File)
Sun, Jun 7, 12:46
Unknown Object (File)
Fri, Jun 5, 21:17
Unknown Object (File)
Mon, Jun 1, 17:48
Unknown Object (File)
Tue, May 26, 06:38
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