Implementing a proxy server
You close the response after you receive the first chunk of data (..close()
) . You should remove the close() from there and listen to the close event of the proxyResponse stream and close the response from there.
You close the response after you receive the first chunk of data (..close()
) . You should remove the close() from there and listen to the close event of the proxyResponse stream and close the response from there.