Consensys / armlet

a MythX API client wrapper
MIT License
17 stars 7 forks source link

On redirect on http login, turn into https login #50

Closed rocky closed 5 years ago

rocky commented 5 years ago

@fgimenez mentioned having a problem in the code the last time I suggested converting http:// to https:// because you run locally which allows the http protocol.

Here we only do a http->https redirect only on a HTTP 308 response which in your situation won't occur.

If this is acceptable, let me know. This is a nice to have but not as user-friendly necessary as some of the other HTTP response code handling I feel are.

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 248


Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/login.js 1 6 16.67%
<!-- Total: 1 6 16.67% -->
Totals Coverage Status
Change from base Build 242: -1.5%
Covered Lines: 221
Relevant Lines: 260

💛 - Coveralls