Skip to content

Commit

Permalink
feat: Метод Адрес заменен на URL с указанием протокола
Browse files Browse the repository at this point in the history
  • Loading branch information
Stivo182 committed Feb 5, 2025
1 parent aa4dc2e commit 7c9882f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/core/Классы/HttpBin.os
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
//
// Возвращаемое значение:
// Строка
Функция Адрес() Экспорт
Возврат СтрШаблон("%1:%2", НастройкиВебСервера.ИмяХоста, НастройкиВебСервера.Порт);
Функция URL() Экспорт
Возврат СтрШаблон("http://%1:%2", НастройкиВебСервера.ИмяХоста, НастройкиВебСервера.Порт);
КонецФункции

// Устанавливает порт сервиса
Expand Down
2 changes: 1 addition & 1 deletion tests/HttpBin_API_test.os
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@
КонецФункции

Функция URL(АдресРсесурса)
Возврат СтрШаблон("http://%1/%2", HttpBin.Адрес(), АдресРсесурса);
Возврат СтрШаблон("%1/%2", HttpBin.URL(), АдресРсесурса);
КонецФункции

Функция ПараметрыКоннектора(Заголовки = Неопределено)
Expand Down

0 comments on commit 7c9882f

Please sign in to comment.