force_basic_auth Force the sending of the Basic authentication header upon initial request. The library used by the uri module only sends authentication information when a webservice responds to an initial request with a 401 status.
но если я убираю user/password из модуля, то приложение возвращает 401, как и должно
force_basic_auth Force the sending of the Basic authentication header upon initial request. The library used by the uri module only sends authentication information when a webservice responds to an initial request with a 401 status.
но если я убираю user/password из модуля, то приложение возвращает 401, как и должно
Приложенька, надо полагать, очень хочет сеачала заслать 401, а потом уже смотреть, кто пришёл. Сдай баг Баруху.
Я собственно почему обратил на это внимание - ибо в выводе httpbin при использовании command + curl был хедер Authorization: Basic, а вот при uri - его вообще не было