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

Возможность переопределять дату AWS4 запроса #31

Closed
leemuar opened this issue Feb 18, 2020 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@leemuar
Copy link
Collaborator

leemuar commented Feb 18, 2020

Не могу придумать реального случая, когда это может пригодиться, кроме отладки. В данный момент всегда берется текущая дата:

ТекущееВремя = ТекущаяУниверсальнаяДата();

Варианты:

  • анализировать заголовки запроса, если в них есть x-amz-date или date - использовать их значение
  • еще один параметр аутентификации^
Аутентификация = Новый Структура;
Аутентификация.Вставить("ДатаЗапроса", Дата(2020, 02, 01));
...
@vbondarevsky
Copy link
Owner

Дату можно задать через заголовок

Заголовки.Вставить("x-amz-date", "20200426T122000Z");

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

No branches or pull requests

2 participants