Search Issue Tracker
By Design
Votes
1
Found in
2018.4
2019.4.2f1
2020.2
Issue ID
1260976
Regression
No
UnityWebRequest.SetRequestHeader() throws an error when Header value contains unfinished parentheses
Reproduction steps:
1. Download and open the attached project "1260976.zip"
2. Open the Sample Scene
3. Enter Play mode
Expected result: No errors are thrown
Actual result: "InvalidOperationException: Header value contains invalid characters" error is thrown
Reproduces on: 2018.4.25f1, 2019.4.4f1, 2020.1.0b16, 2020.2.0a18
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- The USS cursor style property is not applied when it is set for the root VisualElement
- [Player Settings] [Common] [Optimization] - Setting 'Preload Assets' throws parser error
- Editor crashes on physx::shdfnd::internal::HashBase or freezes when instantiating a lot of GameObjects
- Audio Source stops playing when moved to a scene with LocalPhysicsMode.Physics2D Parameter
- "NullReferenceException: Object reference not set to an instance of an object" error is thrown in the Play Mode when the project is reopened with a Prefab GameObject selected in the SerializedField
Resolution Note:
I believe this is by design, unless pointed to documentation stating otherwise.
According specification, parentheses are not allowed in tokens and are treated specially. Hence, if user does want to send header values like in example, those header values should use the qouted syntax:
https://www.greenbytes.de/tech/webdav/rfc7230.html#field.components