Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

nginx: Make Tornado /events locations exact matches.

Alex Vandiver97a8a5f1a04d
diff --git a/puppet/zulip/files/nginx/zulip-include-frontend/app b/puppet/zulip/files/nginx/zulip-include-frontend/app
index efead2a51a5..517cd4206fa 100644
--- a/puppet/zulip/files/nginx/zulip-include-frontend/app
+++ b/puppet/zulip/files/nginx/zulip-include-frontend/app
@@ -59,7 +59,7 @@ location /help {
}
# Send longpoll requests to Tornado
-location /json/events {
+location = /json/events {
if ($request_method = 'OPTIONS') {
# add_header does not propagate into/out of blocks, so this
# include cannot be factored out
@@ -81,7 +81,7 @@ location /json/events {
}
# Send longpoll requests to Tornado
-location /api/v1/events {
+location = /api/v1/events {
if ($request_method = 'OPTIONS') {
include /etc/nginx/zulip-include/tornado_cors_headers;