forked fromAsyncHttpClient/async-http-client
- Notifications
You must be signed in to change notification settings - Fork0
Commit3c25a42
Fix broken Head302Test (AsyncHttpClient#1421)
* Update Head302Test to show it is actually failingThis test had the following defects which caused it to falsely pass:* Jetty requires a handler to explicitly indicate it has handled therequest by calling Request.setHandled(true). Otherwise the server willreturn 404.* The test did not configure the client to follow redirects.* The test itself wasn't asserting anything useful beyond that therequest did not time out. To ensure the redirect was followed, it needsto assert the expected response status code from the redirected locationis received.* Fix broken Head302TestThe test now verifies that a HEAD redirected via 302 is switched to GETper [1].[1]AsyncHttpClient#9891 parentaf2e5af commit3c25a42
1 file changed
+16
-10
lines changedLines changed: 16 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
57 | 59 | | |
58 | 60 | | |
59 | 61 | | |
| |||
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
67 | | - | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
71 | | - | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
79 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
80 | 86 | | |
81 | 87 | | |
82 | 88 | | |
| |||
0 commit comments
Comments
(0)