From ca5a528818e71b25df0dab479933ee174f555ec3 Mon Sep 17 00:00:00 2001 From: "roberto@debian32" Date: Sun, 12 Jun 2011 11:45:30 +0200 Subject: [PATCH] added UWSGI_FASTROUTER_KEY var --- plugins/fastrouter/fastrouter.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/fastrouter/fastrouter.c b/plugins/fastrouter/fastrouter.c index a9f7f157..1f9ab731 100644 --- a/plugins/fastrouter/fastrouter.c +++ b/plugins/fastrouter/fastrouter.c @@ -192,6 +192,12 @@ void fr_get_hostname(char *key, uint16_t keylen, char *val, uint16_t vallen, voi fr_session->hostname_len = vallen; return; } + + if (!uwsgi_strncmp("UWSGI_FASTROUTER_KEY", 20, key, keylen)) { + fr_session->hostname = val; + fr_session->hostname_len = vallen; + return; + } } struct fastrouter_session *alloc_fr_session() {