Update httpsig util

This commit is contained in:
Daniel Supernault 2018-08-25 22:13:54 -06:00
parent ee19583444
commit 24ee5b1297
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -46,7 +46,7 @@ class HTTPSignature {
try { try {
$url = $this->profile; $url = $this->profile;
$res = Zttp::timeout(60)->withoutVerifying()->withHeaders([ $res = Zttp::timeout(30)->withHeaders([
'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"', 'Accept' => 'application/ld+json; profile="https://www.w3.org/ns/activitystreams"',
'User-Agent' => 'PixelFedBot v0.1 - https://pixelfed.org' 'User-Agent' => 'PixelFedBot v0.1 - https://pixelfed.org'
])->get($url); ])->get($url);