Skip to content

Credentials HTTP Warning #978

Closed
Closed
@luggesexe

Description

@luggesexe

Hello,

I am currently building a small tool with resty. It seems to work as expected but I get the following error:

WARN RESTY Using sensitive credentials in HTTP mode is not secure. Use HTTPS

I am following the documentation and tried setting client.SetBaseURL with https values aswell as

res, err := client.R(). EnableTrace(). SetBasicAuth(os.Getenv("...."), os.Getenv("....")). Get("https://API......")

In the trace Information I can see that the full URL including https is set.
Is there maybe an error checking for the raw scheme? r.RawRequest.URL.Scheme == "http"?

Kindly
Lukas

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions