Skip to content

Commit

Permalink
fix: assume blocking unless HEAD
Browse files Browse the repository at this point in the history
This is a safer default.
  • Loading branch information
ronag committed Oct 25, 2024
1 parent 68107da commit c54f654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ class Request {
? method === 'HEAD' || method === 'GET'
: idempotent

this.blocking = blocking == null ? false : blocking
this.blocking = blocking ?? this.method !== 'HEAD'

this.reset = reset == null ? null : reset

Expand Down

0 comments on commit c54f654

Please sign in to comment.