Michael Stapelberg
|
c74b4e7749
|
httpclient: use os.ReadFile instead of deprecated ioutil.ReadFile
|
2025-12-09 17:36:00 +01:00 |
|
Michael Stapelberg
|
fc385a9e3d
|
httpclient: remove now-unused GetRemoteScheme
|
2025-12-09 17:35:39 +01:00 |
|
Michael Stapelberg
|
3c1aa9087c
|
tlsflag,httpclient: remove global state
|
2025-12-08 21:31:10 +01:00 |
|
Michael Stapelberg
|
cbfb18ae26
|
httpclient: use updateflag.Value instead of global access
|
2025-12-05 17:50:16 +01:00 |
|
Michael Stapelberg
|
a645001f8b
|
BaseURL: select port based on schema, plumb through custom httpsPort
Thanks to Christian Schlögl for the report.
|
2023-10-31 19:29:44 +01:00 |
|
Michael Stapelberg
|
a6cc5568b3
|
httpclient.For: fall back to cfg.Hostname
|
2023-01-22 18:31:18 +01:00 |
|
Michael Stapelberg
|
c51f6b8f94
|
httpclient: remove now-unused GetHTTPClientForInstance
|
2023-01-15 16:38:56 +01:00 |
|
Michael Stapelberg
|
79b761a8d0
|
httpclient: add For() function working with a *config.Struct
|
2023-01-15 16:37:09 +01:00 |
|
Mark Dietzer
|
a2f6689ea8
|
Add method to get HTTP client for a specified instance (#14)
|
2022-09-13 22:15:30 +02:00 |
|
Mark Dietzer
|
eb0e72acc1
|
Use Hostname() for finding cert.pem in httpclient, Host might include ports (#13)
|
2022-09-07 08:26:47 +02:00 |
|
Michael Stapelberg
|
3a50f98bee
|
treat -tls="" as enabled if certs exist, add -tls=off
This allows using breakglass without explicitly setting -tls=self-signed.
fixes https://github.com/gokrazy/gokrazy/issues/131
|
2022-07-09 19:25:10 +02:00 |
|
Michael Stapelberg
|
707cfb1f7d
|
remove unnecessary use of pointers
|
2022-04-30 21:20:34 +02:00 |
|
Michael Stapelberg
|
dd941cf696
|
set InsecureSkipVerify if -insecure is specified
|
2020-06-01 14:00:25 +02:00 |
|
Michael Stapelberg
|
d96421c600
|
handle upgrade path (location: header missing)
|
2020-05-31 21:46:36 +02:00 |
|
Michael Stapelberg
|
0ad69b1961
|
remove status code check after all
I was about to add Unauthorized to the list, but I think we should just remove
it after all , as it seems brittle.
|
2020-05-31 21:46:12 +02:00 |
|
Michael Stapelberg
|
bcf56cab3e
|
don’t use TLS at all if -tls is empty
|
2020-05-31 21:45:59 +02:00 |
|
Michael Stapelberg
|
d0cf397b47
|
GetTLSHttpClientByTLSFlag: check if tls flag is non-empty
|
2020-05-31 21:29:35 +02:00 |
|
Janis Streib
|
220f580f3a
|
Specify the httpClient (part of gokrazy/gokrazy#7) (#4)
This allows us to use a custom httpClient with own trusted certificates.
|
2020-05-31 11:28:57 +02:00 |
|