Skip to content

Commit

Permalink
Sticky: $upstream_sticky_status variable value is now uppercase.
Browse files Browse the repository at this point in the history
This is in line with the $upstream_cache_status variable style.
  • Loading branch information
vlhomutov committed May 30, 2023
1 parent 5030c4b commit 376b657
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/xml/angie/changes.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ the session are routed to the same server.

<change type="feature">
<para lang="ru">
переменная $upstream_sticky_status, принимающая значения "new", "hit" или "miss"
переменная $upstream_sticky_status, принимающая значения "NEW", "HIT" или "MISS"
в зависимости от успеха направления запроса на релевантный проксируемый сервер с
включенной привязкой сессий.
</para>
<para lang="en">
the $upstream_sticky_status variable, that takes either "new", "hit" or "miss"
the $upstream_sticky_status variable, that takes either "NEW", "HIT" or "MISS"
values depending on success of requesting related upstream server with sticky
sessions enabled.
</para>
Expand Down
6 changes: 3 additions & 3 deletions src/http/ngx_http_upstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -6213,9 +6213,9 @@ ngx_http_upstream_cache_etag(ngx_http_request_t *r,

static ngx_str_t ngx_http_upstream_sticky_status[4] = {
ngx_string(""),
ngx_string("new"), /* NGX_HTTP_UPSTREAM_STICKY_STATUS_NEW */
ngx_string("hit"), /* NGX_HTTP_UPSTREAM_STICKY_STATUS_HIT */
ngx_string("miss") /* NGX_HTTP_UPSTREAM_STICKY_STATUS_MISS */
ngx_string("NEW"), /* NGX_HTTP_UPSTREAM_STICKY_STATUS_NEW */
ngx_string("HIT"), /* NGX_HTTP_UPSTREAM_STICKY_STATUS_HIT */
ngx_string("MISS") /* NGX_HTTP_UPSTREAM_STICKY_STATUS_MISS */
};


Expand Down

0 comments on commit 376b657

Please sign in to comment.