fixed the https vs http bug. More accurate url extraction

Signed-off-by: Ayudh Das <ayudh.d@gmail.com>