diff --git a/internal/version/VERSION b/internal/version/VERSION index 61a91765..b7133a15 100644 --- a/internal/version/VERSION +++ b/internal/version/VERSION @@ -1 +1 @@ -v5.0.0+2502192122 +v5.0.0+2502192125 diff --git a/pkg/uixt/driver_session.go b/pkg/uixt/driver_session.go index 2ada25f0..0bf5e80b 100644 --- a/pkg/uixt/driver_session.go +++ b/pkg/uixt/driver_session.go @@ -39,14 +39,14 @@ type DriverRequests struct { } const ( - rawSessionID = "" + emptySessionID = "" ) func NewDriverSession() *DriverSession { timeout := 30 * time.Second session := &DriverSession{ ctx: context.Background(), - ID: rawSessionID, + ID: emptySessionID, timeout: timeout, client: &http.Client{ Timeout: timeout, @@ -101,8 +101,8 @@ func (s *DriverSession) concatURL(urlStr string) (string, error) { } // replace with session ID - if s.ID != rawSessionID { - urlStr = strings.Replace(urlStr, rawSessionID, s.ID, 1) + if s.ID != emptySessionID { + urlStr = strings.Replace(urlStr, emptySessionID, s.ID, 1) } // 处理完整 URL