aboutsummaryrefslogtreecommitdiffstats
path: root/swarm
diff options
context:
space:
mode:
authorLewis Marshall <lewis@lmars.net>2018-02-23 21:09:01 +0800
committerBalint Gabor <balint.g@gmail.com>2018-02-23 21:09:01 +0800
commitb677a07d36c957c4221bae952189559ac0c70537 (patch)
treeec9a916106496a5c2384cdd98b952c81b937e77f /swarm
parent4702ace5f7bdc3f4bca6cae6532b01e5f21df72c (diff)
downloadgo-tangerine-b677a07d36c957c4221bae952189559ac0c70537.tar
go-tangerine-b677a07d36c957c4221bae952189559ac0c70537.tar.gz
go-tangerine-b677a07d36c957c4221bae952189559ac0c70537.tar.bz2
go-tangerine-b677a07d36c957c4221bae952189559ac0c70537.tar.lz
go-tangerine-b677a07d36c957c4221bae952189559ac0c70537.tar.xz
go-tangerine-b677a07d36c957c4221bae952189559ac0c70537.tar.zst
go-tangerine-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.go2
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"