Commit 9bf98c1
Make TokenVerifier#call safely reentrant
In a multi-threaded app, two threads might update `@request` before
either thread is able to evaluate `verified_request?`.
In order to retain backward-compatibility, this is fixed by using `dup`
and then calling the original implementation on that copy.1 parent 6bcc98a commit 9bf98c1
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
0 commit comments