Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
cb39891f
Commit
cb39891f
authored
Apr 17, 2013
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code cleanups
parent
9b00aa2f
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
8 deletions
+5
-8
HTTPServer.pm
PVE/HTTPServer.pm
+5
-5
pvedaemon
bin/pvedaemon
+0
-2
pveproxy
bin/pveproxy
+0
-1
No files found.
PVE/HTTPServer.pm
View file @
cb39891f
...
...
@@ -26,12 +26,12 @@ use URI;
use
HTTP::
Status
qw(:constants)
;
use
HTTP::
Headers
;
use
HTTP::
Response
;
use
Data::
Dumper
;
my
$limit_max_headers
=
30
;
my
$limit_max_header_size
=
8
*
1024
;
my
$limit_max_post
=
16
*
1024
;
use
Data::
Dumper
;
# fixme: remove
my
$known_methods
=
{
GET
=>
1
,
...
...
@@ -354,7 +354,7 @@ sub decode_urlencoded {
return
$res
;
}
my
$extract_params
=
sub
{
sub
extract_params
{
my
(
$r
,
$method
)
=
@_
;
my
$params
=
{};
...
...
@@ -370,7 +370,7 @@ my $extract_params = sub {
}
return
PVE::Tools::
decode_utf8_parameters
(
$params
);
}
;
}
sub
handle_api2_request
{
my
(
$self
,
$reqstate
,
$auth
,
$upload_state
)
=
@_
;
...
...
@@ -395,7 +395,7 @@ sub handle_api2_request {
if
(
$upload_state
)
{
$params
=
$upload_state
->
{
params
};
}
else
{
$params
=
&
$extract_params
(
$r
,
$method
);
# fixme
$params
=
extract_params
(
$r
,
$method
);
}
delete
$params
->
{
_dc
};
# remove disable cache parameter
...
...
@@ -584,7 +584,7 @@ sub file_upload_multipart {
if
(
!
$rstate
->
{
done
}
&&
(
$rstate
->
{
read
}
+
length
(
$hdl
->
{
rbuf
}))
>=
$rstate
->
{
size
})
{
$rstate
->
{
done
}
=
1
;
# make sure we dont get called twice
if
(
$rstate
->
{
phase
}
<
0
||
!
$rstate
->
{
md5sum
})
{
$self
->
error
(
$reqstate
,
501
,
"
upload failed
");
# fixme: better msg
die
"
upload failed
\n
";
}
else
{
my
$elapsed
=
tv_interval
(
$rstate
->
{
starttime
});
...
...
bin/pvedaemon
View file @
cb39891f
...
...
@@ -4,13 +4,11 @@ $ENV{'PATH'} = '/sbin:/bin:/usr/sbin:/usr/bin';
delete
@ENV
{
qw(IFS CDPATH ENV BASH_ENV)
};
use
lib
'
..
';
# fixme
use
strict
;
use
Getopt::
Long
;
use
POSIX
"
:sys_wait_h
";
use
Socket
;
use
PVE::
SafeSyslog
;
# use PVE::Config; # fixme
use
PVE::
APIDaemon
;
my
$pidfile
=
"
/var/run/pvedaemon.pid
";
...
...
bin/pveproxy
View file @
cb39891f
...
...
@@ -4,7 +4,6 @@ $ENV{'PATH'} = '/sbin:/bin:/usr/sbin:/usr/bin';
delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
use lib '..'; # fixme
use strict;
use English;
use Getopt::Long;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment