HomeDevCentral

Use RequestBody data guard

Description

Use RequestBody data guard

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

Reviewers: dereckson

Reviewed By: dereckson

Maniphest Tasks: T1827

Differential Revision: https://devcentral.nasqueron.org/D2995

Details

Provenance
derecksonAuthored on Apr 11 2023, 00:51
derecksonPushed on Apr 11 2023, 00:52
Reviewer
dereckson
Differential Revision
D2995: Use RequestBody data guard
Parents
rALK121d622426f5: Publish OpenAPI specification
Branches
Unknown
Tags
Unknown
References
tag: v0.1.0
Tasks
T1827: Don't read body as String