This commit is contained in:
Xavier Guimard 2016-01-29 11:09:58 +00:00
parent 252ef99a6b
commit 4d53c03b42
2 changed files with 6 additions and 1 deletions

View File

@ -889,6 +889,11 @@ default-diff:
@$(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
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
find lemon*/ -type f \( -name '*.pm' -or -name '*.pl' -or -name '*.t' \) -print -exec perltidy -b {} \;
find lemon*/ -name '*.bak' -delete

View File

@ -21,7 +21,7 @@ sub _run {
# Transform 302 responses in 401 since Nginx refuse it
if($res->[0] == 302 or $res->[0] == 303) {
$res->[0] = 401;
push @{$res->[1]},'X-Location' => $tsv->{portal}
push @{$res->[1]},'X-Location' => $tsv->{portal}->();
}
# TODO: transform headers in $res->[1]