Fix reporting errors with wrong types passed to HostingServiceHTTPRequest.

Review Request #11644 — Created June 3, 2021 and submitted

chipx86
Review Board
release-4.0.x
4928
reviewboard

HostingServiceHTTPRequest checks for the type on the body and
headers arguments during construction, logging and raising an
exception if types aren't correct.

This fails, since the logging code attempts to report information on the
request that isn't yet set at that point during construction.

To address this, we're now setting those attributes on the class before
we perform any type checking.

Unit tests pass.

Summary
Fix reporting errors with wrong types passed to HostingServiceHTTPRequest.
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-4.0.x (37f72df)
Loading...