GNOME Bugzilla – Bug 783780
[Negotiate] Can't access sites that request closing the connection during 401
Last modified: 2017-06-22 13:55:38 UTC
When a 401 message is received, a new token is generated and saved in the SoupNegotiateConnectionState's respose header. Later when the connection is closed (as requested by the server), the state is destroyed together with the response header. When a new request is being created and we are asked for the connection authorization, the newly created connection state doesn't have it set. At this point if the connection state is newly created, generate a new token together with the response header that will be returned as the connection authorization. Also modify how the warning from the soup_gss_build_response is printed to differentiate if there was a failure during soup_gss_client_init or soup_gss_client_step.
Created attachment 353736 [details] [review] Proposed patch
Comment on attachment 353736 [details] [review] Proposed patch ok, looks good I think
Fixed with commit 1d532c8e in the master branch.