OperationCode / operationcode_backend

This is the backend repo for the Operation Code website
https://operationcode.org
MIT License
62 stars 110 forks source link

Add available scheme to CodeSchool url #452

Closed AlexandrSorokin closed 5 years ago

AlexandrSorokin commented 5 years ago

Description of changes

Before saving CodeSchool to the database, it takes the following steps: 1) Substitutes the protocol http in url without protocol 2) Make HTTP call to url with https 3) If https is not available, then change protocol to http

The http call slows down saving to the database. It can be avoided by using only the http protocol. This is my first commit to an open source project, so please tell me what I am doing wrong if you can :blush:

Issue Resolved

Fixes #436

apex-omontgomery commented 5 years ago

Thanks for the PR. If this is your first PR with us please fill this form out and ashley will send you some stickers and a handwritten letter. https://docs.google.com/forms/d/e/1FAIpQLSfiBjBC3ALBMiWHQXNvYqNlr5ywW2fhw7i0n82w7gwqN_uc4g/viewform