Unidiff1 files changed, 2 insertions, 0 deletions
|
diff --git a/cgit.c b/cgit.c index ac882c3..0deae12 100644 --- a/ cgit.c+++ b/ cgit.c |
|
@@ -141,12 +141,14 @@ static void querystring_cb(const char *name, const char *value) |
141 | } else if (!strcmp(name, "ofs")) { |
141 | } else if (!strcmp(name, "ofs")) { |
142 | ctx.qry.ofs = atoi(value); |
142 | ctx.qry.ofs = atoi(value); |
143 | } else if (!strcmp(name, "path")) { |
143 | } else if (!strcmp(name, "path")) { |
144 | ctx.qry.path = trim_end(value, '/'); |
144 | ctx.qry.path = trim_end(value, '/'); |
145 | } else if (!strcmp(name, "name")) { |
145 | } else if (!strcmp(name, "name")) { |
146 | ctx.qry.name = xstrdup(value); |
146 | ctx.qry.name = xstrdup(value); |
| |
147 | } else if (!strcmp(name, "mimetype")) { |
| |
148 | ctx.qry.mimetype = xstrdup(value); |
147 | } |
149 | } |
148 | } |
150 | } |
149 | |
151 | |
150 | static void prepare_context(struct cgit_context *ctx) |
152 | static void prepare_context(struct cgit_context *ctx) |
151 | { |
153 | { |
152 | memset(ctx, 0, sizeof(ctx)); |
154 | memset(ctx, 0, sizeof(ctx)); |
|