mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-28 18:06:34 +02:00
10 lines
164 B
Go
10 lines
164 B
Go
package oauth21
|
|
|
|
import "net/http"
|
|
|
|
func optionalFormParam(r *http.Request, key string) *string {
|
|
if v := r.FormValue(key); v != "" {
|
|
return &v
|
|
}
|
|
return nil
|
|
}
|