refine https detecting & request report ending