Skip to content

Commit

Permalink
http: init SyncCall if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
lesismal committed Jan 27, 2025
1 parent eea3c59 commit b8a5ea5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nbhttp/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,9 @@ func NewEngine(conf Config) *Engine {
emptyRequest: (&http.Request{}).WithContext(baseCtx),
BaseCtx: baseCtx,
Cancel: cancel,
SyncCall: serverCall,
}
if engine.SyncCall == nil {
engine.SyncCall = serverCall
}

// shouldSupportTLS := !conf.SupportServerOnly || len(conf.AddrsTLS) > 0
Expand Down

0 comments on commit b8a5ea5

Please sign in to comment.