Skip to content
This repository has been archived by the owner on Sep 13, 2024. It is now read-only.

Commit

Permalink
fixed xml app tag
Browse files Browse the repository at this point in the history
  • Loading branch information
roberto@gambit committed Aug 18, 2011
1 parent 98b89dc commit 71bfd63
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xmlconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ void uwsgi_xml_config(char *filename, struct wsgi_request *wsgi_req, int app_tag
if (node->type == XML_ELEMENT_NODE) {

if (!strcmp((char *) node->name, "app")) {
wsgi_req->script_name_len = 0;
wsgi_req->appid_len = 0;
wsgi_req->host_len = 0;
xml_uwsgi_mountpoint = xmlGetProp(node, (const xmlChar *) "mountpoint");
if (xml_uwsgi_mountpoint) {
wsgi_req->script_name = (char *) xml_uwsgi_mountpoint;
wsgi_req->script_name_len = strlen(wsgi_req->script_name);
wsgi_req->appid = (char *) xml_uwsgi_mountpoint;
wsgi_req->appid_len = strlen(wsgi_req->appid);
}

xml_uwsgi_domain = xmlGetProp(node, (const xmlChar *) "domain");
Expand Down

0 comments on commit 71bfd63

Please sign in to comment.