Commit 3bb6963
authored
HTTP Module: request.reusedSocket documentation sample code error fix
HTTP Module: request.reusedSocket documentation sample code has a error, their is no agent variable declared in the sample code but that agent variable is used in the request object, which is really confusing for the reader, from where does the agent variable is taken.
So, fixed the code by adding the agent variable and taking the http.agent initalization.1 parent 7e60b5e commit 3bb6963
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1139 | 1139 | | |
1140 | 1140 | | |
1141 | 1141 | | |
| 1142 | + | |
1142 | 1143 | | |
1143 | 1144 | | |
1144 | 1145 | | |
| |||
1160 | 1161 | | |
1161 | 1162 | | |
1162 | 1163 | | |
| 1164 | + | |
1163 | 1165 | | |
1164 | 1166 | | |
1165 | 1167 | | |
| |||
0 commit comments