Bad variable names (fixes last commit)
This commit is contained in:
parent
41773d3f67
commit
03fc02c26f
|
@ -319,7 +319,7 @@ class MagicEnvelope
|
|||
|
||||
$magic_env = self::signMessage($text, 'application/atom+xml', $magicsig);
|
||||
|
||||
assert($magicenv instanceof MagicEnvelope);
|
||||
assert($magic_env instanceof MagicEnvelope);
|
||||
|
||||
return $magic_env;
|
||||
}
|
||||
|
|
|
@ -65,15 +65,15 @@ class Salmon
|
|||
|
||||
try {
|
||||
$client = new HTTPClient();
|
||||
$client->setBody($envelope);
|
||||
$client->setBody($envxml);
|
||||
$response = $client->post($endpoint_uri, $headers);
|
||||
} catch (HTTP_Request2_Exception $e) {
|
||||
common_log(LOG_ERR, "Salmon ($class) post to $endpoint_uri failed: " . $e->getMessage());
|
||||
return false;
|
||||
}
|
||||
if ($response->getStatus() != 200) {
|
||||
common_log(LOG_ERR, "Salmon ($class) at $endpoint_uri returned status " .
|
||||
$response->getStatus() . ': ' . $response->getBody());
|
||||
common_log(LOG_ERR, sprintf('Salmon at %s returned status %s: %s',
|
||||
$endpoint_uri, $response->getStatus(), $response->getBody()));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user