Fixed redirection on proxy when changeOrigin enable

Redirection has four cases:

1. redirect to the same target with changeOrigin
2. redirect to the same target without changeOrigin
3. redirect to the different target with changeOrigin
4. redirect to the different target without changeOrigin

the existing code can handle case 2, the fix is for case 1. case 3 and case 4 need to handle proxy response event to add proxy entry by user logic.