Skip to content

Commit

Permalink
Updating to version 0.3, with HA Proxy support
Browse files Browse the repository at this point in the history
  • Loading branch information
rglaue committed Sep 4, 2018
1 parent 0cc9aeb commit 1b2b600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ format_value=$(get_http_req_uri_params_value "format")
This function will obtain the value of a paramter provided in the HTTP request
header **X-Haproxy-Server-State**.
```bash
# if `X-Haproxy-Server-State: UP; name=backend/server; node=haproxy-name; weight=1/2; scur=0/1; qcur=0; throttle=86%
# if X-Haproxy-Server-State: UP; name=backend/server; node=haproxy-name; weight=1/2; scur=0/1; qcur=0; throttle=86%
HA_NAME=$(get_haproxy_server_state_value name)
# Result: HA_NAME == backend/server
HA_WEIGHT=$(get_haproxy_server_state_value weight)
Expand Down

0 comments on commit 1b2b600

Please sign in to comment.