Skip to content

True#174

Open
Udaara wants to merge 264 commits intofeature/add_benchmarkfrom
master
Open

True#174
Udaara wants to merge 264 commits intofeature/add_benchmarkfrom
master

Conversation

@Udaara
Copy link
Copy Markdown

@Udaara Udaara commented Oct 23, 2017

No description provided.

parnurzeal and others added 30 commits January 3, 2015 14:05
also added tests and refactored relevant tests.
…mode.

Add Debug and logger to the `SuperAgent` struct, enables logs to request/response.

- Add `SetDebug` to enable/disable debug mode
- Add `SetLogger` to enable 3rd integrator leverage his own logger

In debug mode, leverage httputil to dump details of every request/response.
Keith and others added 30 commits October 4, 2017 10:27
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
Add possibility to use fieldname file (not change it to file1, file2,…
Update Master to catch up with Dev branch
> "io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os,
> and those implementations should be preferred in new code. See the specific function documentation for details.  (SA1019)
please do not ToLower, the key should be same with `json` tags.
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.