Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能修改默认支持的Content-type类型吗 #34

Open
Steven-Yung opened this issue May 19, 2017 · 4 comments
Open

能修改默认支持的Content-type类型吗 #34

Steven-Yung opened this issue May 19, 2017 · 4 comments

Comments

@Steven-Yung
Copy link

默认不支持content-type: text/html或者text/plain,能在配置里改吗?还是只能修改源文件?

@championfu
Copy link

同问,在request.headers中设置好像无效

@kangzubin
Copy link
Owner

试试 request.headers = @{@"Content-Type": @"你的自定义 Content-Type"};

@Blavtes
Copy link

Blavtes commented Nov 1, 2017

修改多个content-type 如何设置???

@westke
Copy link

westke commented Jan 12, 2018

[[XMEngine sharedEngine].sessionManager.requestSerializer setValue:@"修改成啥都可以" forHttpHeaderField:@"Content-Type"];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants