We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42d2df1 commit fafbaa5Copy full SHA for fafbaa5
src/serverHandler/main.go
@@ -96,16 +96,22 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
96
97
// regular flows
98
99
- if data.CanArchive && len(r.URL.RawQuery) > 0 {
+ if len(r.URL.RawQuery) > 0 {
100
switch r.URL.RawQuery {
101
case "tar":
102
- h.tar(w, r, data)
+ if data.CanArchive {
103
+ h.tar(w, r, data)
104
+ }
105
return
106
case "tgz":
- h.tgz(w, r, data)
107
108
+ h.tgz(w, r, data)
109
110
111
case "zip":
- h.zip(w, r, data)
112
113
+ h.zip(w, r, data)
114
115
116
}
117
0 commit comments