swarm/api/http: Fix using deprecated bzzr scheme

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

Signed-off-by: Lewis Marshall <lewis@lmars.net>
This commit is contained in:
Lewis Marshall 2018-02-21 14:34:49 +00:00
parent f54506ccf8
commit 5bc73eff44

View file

@ -349,7 +349,7 @@ func (s *Server) HandleGet(w http.ResponseWriter, r *Request) {
} }
switch { switch {
case r.uri.Raw(): case r.uri.Raw() || r.uri.DeprecatedRaw():
// allow the request to overwrite the content type using a query // allow the request to overwrite the content type using a query
// parameter // parameter
contentType := "application/octet-stream" contentType := "application/octet-stream"