1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/www/squirm/files/patch-ac
Maxim Sobolev e08ce8c6b0 Make substitution in PUT and HEAD methods work.
Submitted by:	Alexey Khlyamkov <official@lll.pp.ru>
2001-11-07 20:26:37 +00:00

30 lines
928 B
Plaintext

$FreeBSD$
--- config.c.orig Fri Mar 31 08:08:04 2000
+++ config.c Wed Nov 7 22:23:27 2001
@@ -277,7 +277,7 @@
return 0;
}
- fq_pattern_filename = gen_fq_name(pattern_filename, "etc/");
+ fq_pattern_filename = gen_fq_name(pattern_filename, "etc/squirm/");
if (fq_pattern_filename == NULL) {
log(LOG_ERROR, "couldn't allocate memory in parse_squirm_conf()\n");
dodo_mode = 1;
@@ -304,11 +304,11 @@
}
else if (strncasecmp(tmp1,"post", min(strlen("post"), strlen(tmp1))) == 0) {
methods |= POST;
- tmp1 += strlen("get");
+ tmp1 += strlen("post");
}
else if (strncasecmp(tmp1, "head", min(strlen("head"), strlen(tmp1))) == 0) {
- methods |= GET;
- tmp1 += strlen("get");
+ methods |= HEAD;
+ tmp1 += strlen("head");
}
else if (strncasecmp(tmp1, "all", min(strlen("all"), strlen(tmp1))) == 0) {
methods |= ALL;