Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed SERVER_PORT in zeromq

  • Loading branch information...
commit 7b2cc757b23cbfad54e3e0b30b61f0f8a8e5caeb 1 parent 68cddd1
roberto@precise64 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  proto/zeromq.c
View
2  proto/zeromq.c
@@ -197,7 +197,7 @@ static int uwsgi_mongrel2_tnetstring_parse(struct wsgi_request *wsgi_req, char *
if (!uwsgi_strncmp("host", 4, key, keylen)) {
char *colon = memchr(val, ':', vallen);
if (colon) {
- wsgi_req->uh.pktsize += proto_base_add_uwsgi_var(wsgi_req, "SERVER_PORT", 11, colon + 1, (colon + 1) - val);
+ wsgi_req->uh.pktsize += proto_base_add_uwsgi_var(wsgi_req, "SERVER_PORT", 11, colon + 1, vallen - ((colon + 1)-val));
}
else {
wsgi_req->uh.pktsize += proto_base_add_uwsgi_var(wsgi_req, "SERVER_PORT", 11, "80", 2);
Please sign in to comment.
Something went wrong with that request. Please try again.