NIP-86: use Content-Type to determine the code path

This commit is contained in:
Alex Gleason 2024-07-16 12:57:42 -05:00 committed by GitHub
parent 58c61ed745
commit 1e094e6cdf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

2
86.md
View File

@ -8,7 +8,7 @@ Relay Management API
Relays may provide an API for performing management tasks. This is made available as a JSON-RPC-like request-response protocol over HTTP, on the same URI as the relay's websocket.
When a relay receives an HTTP(s) request with an `Authorization` header and a `Content-Type` header of `application/nostr+json+rpc` to a URI supporting WebSocket upgrades, it should parse the request as a JSON document with the following fields:
When a relay receives an HTTP(s) request with a `Content-Type` header of `application/nostr+json+rpc` to a URI supporting WebSocket upgrades, it should parse the request as a JSON document with the following fields:
```json
{