Nginx...
This commit is contained in:
parent
252ef99a6b
commit
4d53c03b42
5
Makefile
5
Makefile
|
@ -889,6 +889,11 @@ default-diff:
|
||||||
@$(DIFF) --ignore-matching-lines='set.*get.*\[2\]' $(SRCMANAGERDIR)/scripts/lmConfigEditor $(LMPREFIX)/bin/lmConfigEditor ||true
|
@$(DIFF) --ignore-matching-lines='set.*get.*\[2\]' $(SRCMANAGERDIR)/scripts/lmConfigEditor $(LMPREFIX)/bin/lmConfigEditor ||true
|
||||||
@$(DIFF) --ignore-matching-lines='giveUpPrivileges' $(SRCMANAGERDIR)/scripts/lemonldap-ng-cli $(LMPREFIX)/bin/lemonldap-ng-cli ||true
|
@$(DIFF) --ignore-matching-lines='giveUpPrivileges' $(SRCMANAGERDIR)/scripts/lemonldap-ng-cli $(LMPREFIX)/bin/lemonldap-ng-cli ||true
|
||||||
|
|
||||||
|
test-diff:
|
||||||
|
for file in `find lemonldap-ng-*/lib -type f`; do \
|
||||||
|
$(DIFF) $$file `echo $$file|sed -e s/lib/blib\\\/lib/`; \
|
||||||
|
done
|
||||||
|
|
||||||
tidy: clean
|
tidy: clean
|
||||||
find lemon*/ -type f \( -name '*.pm' -or -name '*.pl' -or -name '*.t' \) -print -exec perltidy -b {} \;
|
find lemon*/ -type f \( -name '*.pm' -or -name '*.pl' -or -name '*.t' \) -print -exec perltidy -b {} \;
|
||||||
find lemon*/ -name '*.bak' -delete
|
find lemon*/ -name '*.bak' -delete
|
||||||
|
|
|
@ -21,7 +21,7 @@ sub _run {
|
||||||
# Transform 302 responses in 401 since Nginx refuse it
|
# Transform 302 responses in 401 since Nginx refuse it
|
||||||
if($res->[0] == 302 or $res->[0] == 303) {
|
if($res->[0] == 302 or $res->[0] == 303) {
|
||||||
$res->[0] = 401;
|
$res->[0] = 401;
|
||||||
push @{$res->[1]},'X-Location' => $tsv->{portal}
|
push @{$res->[1]},'X-Location' => $tsv->{portal}->();
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: transform headers in $res->[1]
|
# TODO: transform headers in $res->[1]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user