Fix federation with pixelfed!
This commit is contained in:
parent
750d071c8d
commit
221c577826
1 changed files with 6 additions and 0 deletions
|
@ -353,6 +353,12 @@ class Signature {
|
|||
if ( 'content-length' === $header ) {
|
||||
$signed_data .= $header . ': ' . $headers['content_length'][0] . "\n";
|
||||
}
|
||||
if ( 'user-agent' === $header ) {
|
||||
$signed_data .= $header . ': ' . $headers['user_agent'][0] . "\n";
|
||||
}
|
||||
if ( 'accept' === $header ) {
|
||||
$signed_data .= $header . ': ' . $headers['accept'][0] . "\n";
|
||||
}
|
||||
if ( 'date' === $header ) {
|
||||
// allow a bit of leeway for misconfigured clocks.
|
||||
$d = new DateTime( $headers[ $header ][0] );
|
||||
|
|
Loading…
Reference in a new issue