Skip to content

Commit

Permalink
add query params
Browse files Browse the repository at this point in the history
  • Loading branch information
blinkinglight committed Mar 6, 2020
1 parent 5a71931 commit a07e46e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ func main() {
vars := mux.Vars(r)

url := getURL(vars["name"], vars["file"])
if r.URL.RawQuery != "" {
*url = *url + "?" + r.URL.RawQuery
}

if url == nil {
http.NotFound(w, r)
Expand Down

0 comments on commit a07e46e

Please sign in to comment.