@@ -175,6 +175,7 @@ module Network.HTTP.Req
175 -- *** Authentication
175 -- *** Authentication
176 -- $authentication
176 -- $authentication
177 , basicAuth
177 , basicAuth
179 , oAuth2Bearer
180 , oAuth2Bearer
180 , oAuth2Token
181 , oAuth2Token
@@ -1180,7 +1181,19 @@ basicAuth
1180 :: ByteString -- ^ Username
1181 :: ByteString -- ^ Username
1181 -> ByteString -- ^ Password
1182 -> ByteString -- ^ Password
1182 -> Option 'Https -- ^ Auth 'Option'
1183 -> Option 'Https -- ^ Auth 'Option'
1184+basicAuth = basicAuthUnsafe
1186+-- | An alternative to 'basicAuth' which works for any scheme. Note that
1187+-- using basic access authentication without SSL/TLS is vulnerable to
1188+-- attacks. Use 'basicAuth' instead unless you know what you are doing.
1193+ :: ByteString -- ^ Username
1194+ -> ByteString -- ^ Password
1195+ -> Option scheme -- ^ Auth 'Option'
1183−basicAuth username password = asFinalizer
1196+basicAuthUnsafe username password = asFinalizer
1184 (pure . L.applyBasicAuth username password)
1197 (pure . L.applyBasicAuth username password)
1186-- | The 'Option' adds OAuth1 authentication.
1199-- | The 'Option' adds OAuth1 authentication.