Skip to content

Conversation

@fromkeith
Copy link
Owner

No description provided.

empijei and others added 28 commits October 1, 2017 22:40
Added doc for DoNotClearSuperAgent
Add references to the issue being addressed and better
comments and variablenames.
Don't infer Content-Type when set explicitly
updating some of the English
Handle error in byte stream (failed transfer of a chunk)
"Clone" the SuperAgent for reuse
chore: bump moul.io/http2curl dependency
please do not ToLower, the key should be same with `json` tags.
Add possibility to use fieldname file (not change it to file1, file2,…
This commit upgrades the project to Go version 1.24.3 from 1.22.0.

Key changes include:
- Updated `go.mod` to specify Go 1.24.3.
- Removed legacy version-specific files (e.g., `gorequest_client_go1.2.go`, `gorequest_transport_go1.8.go`, etc.).
- Consolidated functionality from these deleted files into `gorequest.go`:
    - Added `safeModifyHttpClient()` to handle client cloning correctly.
    - Added `Timeout()` method for `SuperAgent` using the standard `http.Client.Timeout`.
    - Added `safeModifyTransport()` to handle transport cloning, ensuring relevant fields for Go 1.24.3 are copied.
- Ran `go mod tidy` to update dependencies and `go.sum`.
- Fixed test failures in `gorequest_test.go` related to non-constant format strings in `t.Errorf` and `t.Fatalf` calls by using `fmt.Sprintf`.
- Corrected a key casing issue in `TestQueryFunc` that caused test failures after initial format string fixes.

All tests pass with Go 1.24.3 after these changes.
When multiple Host headers were set, the first value was being used instead of the last. This has been corrected to use the last value, which is the expected behavior.

A new test case has been added to verify this fix.
Upgraded the `go.mod` file to specify Go version 1.25.5, which is the latest stable version. This ensures the project uses the most up-to-date Go toolchain.

Ran `go mod tidy` to synchronize dependencies and verified that all tests pass with the new version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.