Commit 9a05cb6
committed
Send Authorization header irrespective of previous authentication status (#178)
- Currently 'force_preemptive' flag sends the 'Authorization' header only for the
first call and not for subsequent calls. This is because 'Authorization' header
is preemptively sent only if the request is not authenticated. The status of
authentication is stored as 'auth_done' instance variable.
Since all the HTTP calls use the same instance of HTTPKerberosAuth class
the 'auth_done' instance variable is set to True after first successful
authentication and thus 'Authorization' header is not set preemptively
after that.
- The fix is to send the Authorization header irrespective of the
authentication status of previous call.1 parent 3e0371a commit 9a05cb6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
430 | | - | |
| 430 | + | |
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
| |||
0 commit comments