Skip to content

Commit

Permalink
[backend] make use of the new formurlencode param
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Apr 29, 2016
1 parent 4846336 commit c361957
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/backend/BSNotify.pm
Expand Up @@ -41,12 +41,13 @@ sub notify {
my $param = {
'uri' => "$BSConfig::srcserver/notify/$type",
'request' => 'POST',
'headers' => [ 'Content-Type: application/x-www-form-urlencoded' ],
'formurlencode' => 1,
'timeout' => 60,
};
if ($payload) {
$param->{'headers'} = [ 'Content-Type: application/octet-stream' ];
$param->{'data'} = $payload;
$param->{'formurlencode'} = 0;
}
my @args = map {"$_=$p->{$_}"} sort keys %$p;
eval {
Expand Down
2 changes: 1 addition & 1 deletion src/backend/BSSched/EventSource/RemoteWatcher.pm
Expand Up @@ -66,7 +66,7 @@ sub new {
'uri' => "$remoteurl/lastevents",
'async' => 1,
'request' => 'POST',
'headers' => [ 'Content-Type: application/x-www-form-urlencoded' ],
'formurlencode' => 1,
'proxy' => $conf{'remoteproxy'},
};
my @args;
Expand Down
2 changes: 1 addition & 1 deletion src/backend/bs_repserver
Expand Up @@ -1804,7 +1804,7 @@ sub receivekiwitree {
my $param = {
'uri' => "$js->{'uri'}/kiwitree",
'request' => 'POST',
'headers' => [ 'Content-Type: application/x-www-form-urlencoded' ],
'formurlencode' => 1,
'directory' => $dir,
'timeout' => 600,
'acceptsubdirs' => 1,
Expand Down

0 comments on commit c361957

Please sign in to comment.