fedipod 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/web/app/deliver-relay.mjs +4 -1
- package/web/app/dist/sw.js +1 -0
- package/web/app/dist/sw.js.map +2 -2
- package/web/app/site/sw.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fedipod",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Standalone single-actor ActivityPub agent whose wire face, RDF truth and state all live on a Solid pod (CSS). Bundles a Phanpy UI and a Mastodon client-API facade.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,10 +28,13 @@ export class RelayDeliverer extends Deliverer {
|
|
|
28
28
|
async signedFetch(url, init = {}) {
|
|
29
29
|
const body = typeof init.body === 'string' ? init.body : (init.body ? new TextDecoder().decode(init.body) : '');
|
|
30
30
|
const s = await sign({ url, method: init.method || 'GET', headers: init.headers || {}, body }, this.rsaPrivate, this.keyId);
|
|
31
|
+
// Every signed header goes to the relay, `accept` included: the signature
|
|
32
|
+
// covers it, so a relay request missing it carries an invalid signature —
|
|
33
|
+
// and a read without it gets the HTML page instead of the document.
|
|
31
34
|
const relayReq = {
|
|
32
35
|
url: s.url, method: s.method, body,
|
|
33
36
|
headers: {
|
|
34
|
-
date: s.headers.date, digest: s.headers.digest,
|
|
37
|
+
date: s.headers.date, digest: s.headers.digest, accept: s.headers.accept,
|
|
35
38
|
'content-type': s.headers['content-type'], signature: s.headers.signature,
|
|
36
39
|
},
|
|
37
40
|
};
|
package/web/app/dist/sw.js
CHANGED
|
@@ -67388,6 +67388,7 @@ var RelayDeliverer = class extends Deliverer {
|
|
|
67388
67388
|
headers: {
|
|
67389
67389
|
date: s.headers.date,
|
|
67390
67390
|
digest: s.headers.digest,
|
|
67391
|
+
accept: s.headers.accept,
|
|
67391
67392
|
"content-type": s.headers["content-type"],
|
|
67392
67393
|
signature: s.headers.signature
|
|
67393
67394
|
}
|