swarm/api/http: Fix using deprecated bzzr scheme (#16152)

Without this, deprecated bzzr requests just return an empty response.

Signed-off-by: Lewis Marshall <lewis@lmars.net>
pull/16176/head
Lewis Marshall 7 years ago committed by Balint Gabor
parent 4702ace5f7
commit b677a07d36
  1. 2
      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"

Loading…
Cancel
Save