Rename RemoteAddress to RemoteAddr.
This commit is contained in:
parent
64942c9793
commit
01111b5258
@ -26,7 +26,7 @@ Hooks are defined as JSON objects. Please note that in order to be considered va
|
||||
* `method` - HTTP(s) method used by the client (i.e. GET, POST, etc...)
|
||||
* `URI` - URI which client requested
|
||||
* `host` - value of the `Host` header sent by the client
|
||||
* `remoteAddress` - client's IP address
|
||||
* `remoteAddr` - client's IP address and port in the `IP:PORT` format
|
||||
* `query` - object with query parameters and their respective values
|
||||
* `headers` - object with headers and their respective values
|
||||
* `base64EncodedBody` - base64 encoded request body
|
||||
|
@ -430,7 +430,7 @@ type PreHookContext struct {
|
||||
HookID string `json:"hookID"`
|
||||
Method string `json:"method"`
|
||||
Base64EncodedBody string `json:"base64EncodedBody"`
|
||||
RemoteAddress string `json:"remoteAddress"`
|
||||
RemoteAddr string `json:"remoteAddr"`
|
||||
URI string `json:"URI"`
|
||||
Host string `json:"host"`
|
||||
Headers http.Header `json:"headers"`
|
||||
|
@ -256,7 +256,7 @@ func hookHandler(w http.ResponseWriter, r *http.Request) {
|
||||
HookID: matchedHook.ID,
|
||||
Method: r.Method,
|
||||
Base64EncodedBody: base64.StdEncoding.EncodeToString(body),
|
||||
RemoteAddress: r.RemoteAddr,
|
||||
RemoteAddr: r.RemoteAddr,
|
||||
URI: r.RequestURI,
|
||||
Host: r.Host,
|
||||
Headers: r.Header,
|
||||
|
Loading…
Reference in New Issue
Block a user