提交 e2a90c4d 编写于 作者: C Chinmay Garde

Merge pull request #2064 from collinjackson/http_headers_ios

Add support for HTTP headers on iOS
......@@ -133,6 +133,12 @@ void URLLoaderImpl::Start(URLRequestPtr request,
req.HTTPMethod = @(request->method.data());
for (auto header : request->headers) {
NSString *name = @(header->name.data());
NSString *value = @(header->value.data());
[req addValue:value forHTTPHeaderField:name];
};
URLLoaderConnectionDelegate* delegate =
(URLLoaderConnectionDelegate*)connection_delegate_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册