From 5bc73eff447e722224093d28826018699986a2b4 Mon Sep 17 00:00:00 2001 From: Lewis Marshall Date: Wed, 21 Feb 2018 14:34:49 +0000 Subject: [PATCH] swarm/api/http: Fix using deprecated bzzr scheme Without this, deprecated bzzr requests just return an empty response. Signed-off-by: Lewis Marshall --- swarm/api/http/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/api/http/server.go b/swarm/api/http/server.go index 74341899d2..b89487af7e 100644 --- a/swarm/api/http/server.go +++ b/swarm/api/http/server.go @@ -349,7 +349,7 @@ func (s *Server) HandleGet(w http.ResponseWriter, r *Request) { } switch { - case r.uri.Raw(): + case r.uri.Raw() || r.uri.DeprecatedRaw(): // allow the request to overwrite the content type using a query // parameter contentType := "application/octet-stream"