summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 34ff113)
raw | patch | inline | side by side (parent: 34ff113)
author | Sebastian Harl <sh@tokkee.org> | |
Thu, 4 Dec 2014 21:35:54 +0000 (22:35 +0100) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Thu, 4 Dec 2014 21:35:54 +0000 (22:35 +0100) |
server/server.go | patch | blob | history |
diff --git a/server/server.go b/server/server.go
index c0f449cd451dd8d735107c8d8ca877f6fa5aabbc..2b0c27e9ce0dc9882c00e2d336516f9c4dfe2f48 100644 (file)
--- a/server/server.go
+++ b/server/server.go
if len(path) > 0 && path[0] == '/' {
path = path[1:]
}
+ if idx := strings.Index(path, "?"); idx != -1 {
+ path = path[:idx]
+ }
var fields []string
for _, f := range strings.Split(path, "/") {
f, err := url.QueryUnescape(f)