Mercurial > urweb
comparison src/c/urweb.c @ 1067:50dd937c4cb9
Bug fixes in redirect-related stuff
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 10 Dec 2009 15:46:07 -0500 |
parents | 740b85ef4352 |
children | 2eb585274501 |
comparison
equal
deleted
inserted
replaced
1066:740b85ef4352 | 1067:50dd937c4cb9 |
---|---|
3081 s = strchr(ctx->page.start, '\n'); | 3081 s = strchr(ctx->page.start, '\n'); |
3082 if (s) { | 3082 if (s) { |
3083 char *s2; | 3083 char *s2; |
3084 for (++s; s2 = strchr(s, '\n'); s = s2+1) { | 3084 for (++s; s2 = strchr(s, '\n'); s = s2+1) { |
3085 *s2 = 0; | 3085 *s2 = 0; |
3086 printf("Line: %s\n", s); | |
3087 if (!strncmp(s, "Set-Cookie: ", 12)) { | 3086 if (!strncmp(s, "Set-Cookie: ", 12)) { |
3088 uw_write_header(ctx, s); | 3087 uw_write_header(ctx, s); |
3089 uw_write_header(ctx, "\n"); | 3088 uw_write_header(ctx, "\n"); |
3090 } | 3089 } |
3091 } | 3090 } |