return secured report url when request is secured

PLAT-1539 #time 20m
identation fix
Merge pull request #1522 from kaltura/IX-9.19.1-PLAT-1539

Ix 9.19.1 plat 1539