mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
Make substitution in PUT and HEAD methods work.
Submitted by: Alexey Khlyamkov <official@lll.pp.ru>
This commit is contained in:
parent
d11078ba78
commit
e08ce8c6b0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=49818
2 changed files with 21 additions and 2 deletions
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
PORTNAME= squirm
|
PORTNAME= squirm
|
||||||
PORTVERSION= 1.23
|
PORTVERSION= 1.23
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= www
|
CATEGORIES= www
|
||||||
MASTER_SITES= http://www.senet.com.au/squirm/ \
|
MASTER_SITES= http://www.senet.com.au/squirm/ \
|
||||||
http://www.elab.co.za/squirm/
|
http://www.elab.co.za/squirm/
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
--- ../squirm-1.23.orig/config.c Fri Mar 31 08:08:04 2000
|
|
||||||
+++ config.c Wed Jun 7 10:27:39 2000
|
$FreeBSD$
|
||||||
|
|
||||||
|
--- config.c.orig Fri Mar 31 08:08:04 2000
|
||||||
|
+++ config.c Wed Nov 7 22:23:27 2001
|
||||||
@@ -277,7 +277,7 @@
|
@@ -277,7 +277,7 @@
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -9,3 +12,18 @@
|
||||||
if (fq_pattern_filename == NULL) {
|
if (fq_pattern_filename == NULL) {
|
||||||
log(LOG_ERROR, "couldn't allocate memory in parse_squirm_conf()\n");
|
log(LOG_ERROR, "couldn't allocate memory in parse_squirm_conf()\n");
|
||||||
dodo_mode = 1;
|
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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue