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

Use https transport in Yandex provider #432

Merged
merged 1 commit into from
Jun 25, 2015
Merged

Use https transport in Yandex provider #432

merged 1 commit into from
Jun 25, 2015

Conversation

nitso
Copy link
Contributor

@nitso nitso commented May 7, 2015

No description provided.

@nitso nitso changed the title Use https transport in Yandex provider #431 Use https transport in Yandex provider May 7, 2015
@Baachi
Copy link
Member

Baachi commented May 7, 2015

You have to change the exception message in the unit tests.

@willdurand
Copy link
Member

Also, I would prefer to keep the http version. Some other providers have a $useSsl option.

@toin0u
Copy link
Member

toin0u commented May 7, 2015

I also think the $useSsl option is the best approach https://github.com/geocoder-php/Geocoder/blob/master/src%2FGeocoder%2FProvider%2FGoogleMaps.php#L80 :)

@nitso
Copy link
Contributor Author

nitso commented May 8, 2015

It is a good idea to implement $useSsl switch. Should it be true or false by default?

@toin0u
Copy link
Member

toin0u commented May 8, 2015

I'm not sure because Yandex will use https only soon..

@Baachi
Copy link
Member

Baachi commented May 8, 2015

I would rather throw an exception if the openssl extension isn't installed, because Yandex didn't support http longer.

@willdurand
Copy link
Member

Well if http is deprecated, then no need to introduce the useSsl option. However, it implies a sort of soft BC break... I am not sure about how to deal with that..

@nitso
Copy link
Contributor Author

nitso commented Jun 25, 2015

I've fixed tests that mentioned http. But there is still one failing. Can't really say why.
There is a difference in Yandex response for http and https queries in tests:
1 2

I'll fix it either :)

@willdurand
Copy link
Member

sounds good to me. could you please squash your commits?

Yandex deprecates http schema (http://clubs.ya.ru/mapsapi/replies.xml?item_no=56858) so https should be used instead.
Fixed tests + new cached responses added.
@nitso
Copy link
Contributor Author

nitso commented Jun 25, 2015

Done.

I've added cached responses as well.

willdurand added a commit that referenced this pull request Jun 25, 2015
Use https transport in Yandex provider
@willdurand willdurand merged commit 94c6a83 into geocoder-php:master Jun 25, 2015
@willdurand
Copy link
Member

thank you very much!

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

Successfully merging this pull request may close these issues.

4 participants