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

Duplicated line of code? #145

Closed
ozh opened this issue Apr 17, 2015 · 1 comment
Closed

Duplicated line of code? #145

ozh opened this issue Apr 17, 2015 · 1 comment

Comments

@ozh
Copy link
Collaborator

ozh commented Apr 17, 2015

Hi Ryan

In library/Requests/Transport/fsockopen.php#L213:L216 we have:

$this->info = stream_get_meta_data($fp);
$this->headers = '';
$this->info = stream_get_meta_data($fp);

Is there any reason for these 2 consecutive stream_get_meta_data() ? I don't think the result can ever differ.

@rmccue
Copy link
Collaborator

rmccue commented Oct 12, 2015

I think you're right, doesn't seem like there's any reason for this. Thanks :)

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

No branches or pull requests

2 participants