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

Fix request method. #964

Merged
merged 2 commits into from
Oct 17, 2017
Merged

Fix request method. #964

merged 2 commits into from
Oct 17, 2017

Conversation

mingyoung
Copy link
Collaborator

Content-Type 为 text/plain
image

@overtrue
Copy link
Collaborator

$response->getHeaderLine('Content-Type') 会不会变成 'text/html;charset=utf-8' 这样的?

@mingyoung
Copy link
Collaborator Author

要不就判断 header 有没有包含 text?

@overtrue
Copy link
Collaborator

用 strpos 吧

@overtrue overtrue merged commit a55659b into master Oct 17, 2017
@overtrue overtrue deleted the fix-material-get branch October 17, 2017 09:13
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

Successfully merging this pull request may close these issues.

2 participants