diff options
author | Lewis Marshall <lewis@lmars.net> | 2018-02-23 21:09:01 +0800 |
---|---|---|
committer | Balint Gabor <balint.g@gmail.com> | 2018-02-23 21:09:01 +0800 |
commit | b677a07d36c957c4221bae952189559ac0c70537 (patch) | |
tree | ec9a916106496a5c2384cdd98b952c81b937e77f /swarm | |
parent | 4702ace5f7bdc3f4bca6cae6532b01e5f21df72c (diff) | |
download | dexon-b677a07d36c957c4221bae952189559ac0c70537.tar.gz dexon-b677a07d36c957c4221bae952189559ac0c70537.tar.zst dexon-b677a07d36c957c4221bae952189559ac0c70537.zip |
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>
Diffstat (limited to 'swarm')
-rw-r--r-- | swarm/api/http/server.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/api/http/server.go b/swarm/api/http/server.go index 74341899d..b89487af7 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" |