Skip to content

Commit 02b6e44

Browse files
committed
fix: do not setting error.request.url to undefined on 304 response
1 parent 416b6cc commit 02b6e44

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/request.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ function request (requestOptions) {
4444
}
4545

4646
if (status === 304) {
47-
requestOptions.url = response.headers.location
4847
throw new HttpError('Not modified', status, headers, requestOptions)
4948
}
5049

0 commit comments

Comments
 (0)