fix issue with php generated files with filename passed by headers

I've added a new line in didReceiveResponse in order to be able to handle also the filename of script generated files (eg. pdf via pdf) that receive the file name via response headers.