mirror of
https://git.proxmox.com/git/pve-http-server
synced 2025-05-01 04:14:36 +00:00
header processing: style fixups
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
d8898f5e20
commit
b636292c6c
@ -1313,9 +1313,10 @@ sub unshift_read_header {
|
|||||||
$r->push_header($state->{key}, $state->{val})
|
$r->push_header($state->{key}, $state->{val})
|
||||||
if $state->{key};
|
if $state->{key};
|
||||||
|
|
||||||
$self->process_header($reqstate) or return;
|
return if !$self->process_header($reqstate);
|
||||||
$self->ensure_tls_connection($reqstate) or return;
|
return if !$self->ensure_tls_connection($reqstate);
|
||||||
$self->authenticate_and_handle_request($reqstate) or return;
|
|
||||||
|
$self->authenticate_and_handle_request($reqstate);
|
||||||
|
|
||||||
} elsif ($line =~ /^([^:\s]+)\s*:\s*(.*)/) {
|
} elsif ($line =~ /^([^:\s]+)\s*:\s*(.*)/) {
|
||||||
$r->push_header($state->{key}, $state->{val}) if $state->{key};
|
$r->push_header($state->{key}, $state->{val}) if $state->{key};
|
||||||
@ -1596,8 +1597,6 @@ sub authenticate_and_handle_request {
|
|||||||
} else {
|
} else {
|
||||||
$self->handle_request($reqstate, $auth, $method, $path);
|
$self->handle_request($reqstate, $auth, $method, $path);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sub push_request_header {
|
sub push_request_header {
|
||||||
|
Loading…
Reference in New Issue
Block a user