Page MenuHomePhabricator

Parse HTTP responses with empty "reason-phrase" properly in PhutilHTTPResponseParser
ClosedPublic

Authored by epriestley on Sep 4 2018, 3:27 PM.
Tags
None
Referenced Files
F18874948: D19631.id46922.diff
Wed, Nov 5, 4:22 PM
F18867728: D19631.diff
Tue, Nov 4, 2:18 AM
F18866620: D19631.id.diff
Mon, Nov 3, 6:17 PM
F18846721: D19631.diff
Wed, Oct 29, 8:45 PM
F18832635: D19631.id46943.diff
Sat, Oct 25, 10:23 PM
F18832634: D19631.id46922.diff
Sat, Oct 25, 10:23 PM
F18832632: D19631.id.diff
Sat, Oct 25, 10:22 PM
F18831595: D19631.diff
Sat, Oct 25, 1:46 PM
Subscribers
None
Tokens
"Like" token, awarded by nfirmani.

Details

Summary

Depends on D19628. This ports the fix from that change to PhutilHTTPResponseParser, which is theoretically the future of HTTP response parsing.

Test Plan

Added unit test and made it pass; this code is currently unreachable.

Diff Detail

Repository
rPHU libphutil
Lint
Lint Not Applicable
Unit
Tests Not Applicable