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 strict encode #16

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix strict encode #16

wants to merge 1 commit into from

Conversation

Pserg
Copy link

@Pserg Pserg commented May 4, 2020

Изменил при создании токена кодировку Base65 на strict_encode64, т.к. запрос падал с ошибкой Excon::Error::InvalidHeaderValue: "Basic dmxhZGVuNDFrMDA6UzQ4MTUxNjIzNDJj\n" contains forbidden "\r" or "\n"
Насколько я понимаю библиотека excon не хотела принимать символ переноса строки в заголовке. Метод strict_encode64 удаляет перенос строк.
Также подгрузил date т.к. ругнулся на неизвестную константу DateTime.

@Pserg
Copy link
Author

Pserg commented May 4, 2020

Протестировано на версии 2.7.0

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.

1 participant