Commit 4598663
interceptors/http: set length on response (#174)
* interceptors/http: set length on response
In case there is no body handle it as read() is doing, that is returning
an empty body with length 0.
* Reword test name
* Fix linting error
---------
Co-authored-by: Sara <git@sarayourfriend.pictures>1 parent a15f6fb commit 4598663
File tree
2 files changed
+12
-0
lines changed- src/pook/interceptors
- tests/unit/interceptors
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
49 | 60 | | |
0 commit comments