You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
In the case of a general 404 trying to access a file that doesn't exist, Cling incorrectly adds an additional Content-type: text/plain after every 404 received. This means that if the server sends 3 404 responses, the header will provide 3 Content-type: text/plain headers. For 10,000 responses, 10,000 duplicate headers.
This is persistent until the Headers variable is cleared or the service is restarted.
Fix
I believe that in the LOC below, self.message is never False so in every case, it will append another value.
Description
In the case of a general 404 trying to access a file that doesn't exist, Cling incorrectly adds an additional
Content-type: text/plain
after every 404 received. This means that if the server sends 3 404 responses, the header will provide 3Content-type: text/plain
headers. For 10,000 responses, 10,000 duplicate headers.This is persistent until the Headers variable is cleared or the service is restarted.
Fix
I believe that in the LOC below,
self.message
is never False so in every case, it will append another value.static3/static.py
Line 109 in 309ddc3
POC
Run a server
Connect to a file that doesn't exist
wget --server-response http://localhost:9999/TEST
Response
Repeat, and second response
Repeat 10,000 times to see that the headers are repeatedly added to.
The text was updated successfully, but these errors were encountered: