Some typos (#1222)

* Some typos

* Also corrected the typo's in the src code

Co-authored-by: Joel Speed <Joel.speed@hotmail.co.uk>
This commit is contained in:
Frederic Pape
2021-06-02 19:41:30 +01:00
committed by GitHub
co-authored by Joel Speed
parent f648c54d87
commit cfd82daaf0
11 changed files with 19 additions and 19 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ type Header struct {
// PreserveRequestValue determines whether any values for this header
// should be preserved for the request to the upstream server.
// This option only takes effet on injected request headers.
// This option only applies to injected request headers.
// Defaults to false (headers that match this header will be stripped).
PreserveRequestValue bool `json:"preserveRequestValue,omitempty"`
+3 -3
View File
@@ -2,11 +2,11 @@ package options
// Server represents the configuration for an HTTP(S) server
type Server struct {
// BindAddress is the the address on which to serve traffic.
// BindAddress is the address on which to serve traffic.
// Leave blank or set to "-" to disable.
BindAddress string
// SecureBindAddress is the the address on which to serve secure traffic.
// SecureBindAddress is the address on which to serve secure traffic.
// Leave blank or set to "-" to disable.
SecureBindAddress string
@@ -17,7 +17,7 @@ type Server struct {
// TLS contains the information for loading a TLS certifcate and key.
type TLS struct {
// Key is the the TLS key data to use.
// Key is the TLS key data to use.
// Typically this will come from a file.
Key *SecretSource
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/oauth2-proxy/oauth2-proxy/v7/pkg/logger"
)
// errorMessages are default error messages for each of the the different
// errorMessages are default error messages for each of the different
// http status codes expected to be rendered in the error page.
var errorMessages = map[int]string{
http.StatusInternalServerError: "Oops! Something went wrong. For more information contact your server administrator.",
+1 -1
View File
@@ -50,7 +50,7 @@ func (r *result) Body() []byte {
return r.body
}
// UnmarshalInto attempts to unmarshal the response into the the given interface.
// UnmarshalInto attempts to unmarshal the response into the given interface.
// The response body is assumed to be JSON.
// The response must have a 200 status otherwise an error will be returned.
func (r *result) UnmarshalInto(into interface{}) error {