Comments (5)
workflow/tutorial/tutorial-01-wget.cc
Lines 64 to 76 in ae9cff0
from workflow.
Hi, thank you very much for your response.
I wrote your suggestion like this for UE5.
bool UHttpRequestWf::GetAllHeaders(TMap<FString, FString>& Out_Headers)
{
if (!this->Task)
{
return false;
}
std::string TempName;
std::string TempValue;
protocol::HttpHeaderCursor req_cursor(this->Task->get_req());
TMap<FString, FString> Temp_Headers;
while (req_cursor.next(TempName, TempValue))
{
FString Key = TempName.c_str();
FString Value = TempValue.c_str();
Temp_Headers.Add(Key, Value);
}
if (Temp_Headers.IsEmpty())
{
return false;
}
else
{
Out_Headers = Temp_Headers;
return true;
}
}
I works but like my other issue, #1572
If there is a Turkish character in any header's name or value, while loop
doesn't start.
It doesn't matter if header with Turkish character is first entry or not.
from workflow.
According to HTTP protocol, HTTP header should not contain any non-ASCII character. And I do not think you have received a legal HTTP request.
workflow/src/protocol/http_parser.c
Line 383 in ae9cff0
But as a server, when a request is illegal, user's
process
should not be called. Are you sure your function GetAllHeaders
is called?from workflow.
The framework will reply an HTTP/1.1 400 Bad Request
message automaticly. Your process
is not called.
from workflow.
So, we close this too.
from workflow.
Related Issues (20)
- 能否给xmake中的workflow加上windows的支持 HOT 6
- redis zadd命令使用,set_request第二个参数是vector<stirng>, 没法添加int类型 score HOT 36
- Turkish Character Support on get_parsed_body HOT 5
- http请求获取对方应答的数据接口是哪一个 HOT 1
- 能支持mqtt或zmq吗 HOT 1
- http server服务,使用WFGoTask处理请求结束后线程数没有降低 HOT 7
- 机器的连接达到了上限,如何关闭TIME_WAIT连接。 HOT 2
- 请教一个kafka 11错误码的问题 HOT 6
- workflow 如何支持 fast-dds? HOT 1
- http请求不响应问题 HOT 2
- 关于redis sub/pub问题 HOT 12
- workflow自定义协议如何分包发送消息 HOT 5
- 在使用kafka库组件时,突然出现 state=67, errorno= 5003 的错误 HOT 12
- workflow TCP服务端为什么发送数据时主动断开连接 HOT 21
- 在WFHttpServer的一个请求series里调用set_last_task设置一个任务不能成功返回http请求 HOT 5
- 怎样实现与MySQL原生客户端库libmysql相同的预编译相关接口(mysql_stmt_...)的功能 HOT 4
- workflow uds通讯的性能请教 HOT 7
- 在使用kafka库组件时,突然出现 state=67, errorno= 5003 的错误,这个问题重复出现了 HOT 21
- 关于使用kafka创建topic相关问题 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from workflow.