when curl requests are redirected (301) – response headers are merged together and are comma separated. but, Content-Type headers are required to use semi-colon ";" separators.
majoriy of this came from:
Create a new C++ blank project
visual studio should be starting up
edit Project/Source/Project/Project.Build.cs
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore" });
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "Http" });
replace HttpActor.h and HttpActor.cpp with the ones attached to this JIRA.
build C++ project game from visual studio (if you've closed the editor)
add HttpActor to screen – to see the actor you may need to:
drag and drop HttpActor to scene
fire up the 2 python web servers (also attached to this JIRA):
python page1.py
python page2.py
ensure test.json is also in the same folder as these two python scripts.
back in editor, click play – look in the output window to see that there's only one set of Content-Type
if you see "Connection refused" in the output window, ensure the python commands are still running.
or else, you should see a line that shows:
Content-type: application/json
and not:
Content-type: text/html; charset=utf-8, application/json
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-67368 in the post.
0 |
Component | UE - Online |
---|---|
Affects Versions | 4.21 |
Target Fix | 4.22 |
Created | Dec 7, 2018 |
---|---|
Resolved | Jan 3, 2019 |
Updated | Oct 28, 2022 |