From 78dd138ca822d986ca6cdcba7046605d57fb13b7 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Thu, 9 Nov 2023 21:39:28 -0300 Subject: [PATCH] fix content-type for nip-11. --- handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index 3629f0f..e987c95 100644 --- a/handlers.go +++ b/handlers.go @@ -317,7 +317,7 @@ func (rl *Relay) HandleWebsocket(w http.ResponseWriter, r *http.Request) { } func (rl *Relay) HandleNIP11(w http.ResponseWriter, r *http.Request) { - w.Header().Set("Content-Type", "application/json") + w.Header().Set("Content-Type", "application/nostr+json") supportedNIPs := []int{9, 11, 12, 15, 16, 20, 33} if rl.ServiceURL != "" {