better way to handle http/s in duplicating course
pass request because there's no self.request