Skip to content

Conversation

cxjava
Copy link

@cxjava cxjava commented Sep 1, 2025

This change introduces a CheckRedirect field to the http.Client struct in TinyGo, mirroring the behavior of Go's standard library http.Client.

The purpose of this addition is to resolve build errors in projects that rely on packages (such as golang.org/x/oauth2) expecting the Client to have a CheckRedirect field. The field provides no functional change within TinyGo’s HTTP client at this time — it is only included for API compatibility and compilation success. There is no effect on runtime behavior unless explicitly used by downstream code.

This change introduces a CheckRedirect field to the http.Client struct in TinyGo, 
mirroring the behavior of Go's standard library http.Client.

The purpose of this addition is to resolve build errors in projects that rely 
on packages (such as golang.org/x/oauth2) expecting the Client to have a 
CheckRedirect field. The field provides no functional change within TinyGo’s 
HTTP client at this time — it is only included for API compatibility and 
compilation success. There is no effect on runtime behavior unless explicitly 
used by downstream code.
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.

1 participant