Page MenuHomeDevCentral

Use RequestBody data guard
ClosedPublic

Authored by dereckson on Apr 11 2023, 00:35.
Tags
None
Referenced Files
F12299264: D2995.id.diff
Mon, Oct 20, 15:13
F12295471: D2995.id.diff
Mon, Oct 20, 05:27
Unknown Object (File)
Sun, Oct 19, 14:06
Unknown Object (File)
Sat, Oct 18, 03:16
Unknown Object (File)
Fri, Oct 17, 20:59
Unknown Object (File)
Fri, Oct 17, 17:58
Unknown Object (File)
Fri, Oct 17, 17:02
Unknown Object (File)
Thu, Oct 16, 11:20
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