summaryrefslogtreecommitdiff
path: root/lexsurf.go
diff options
context:
space:
mode:
Diffstat (limited to 'lexsurf.go')
-rw-r--r--lexsurf.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/lexsurf.go b/lexsurf.go
index 1598613..9ac8feb 100644
--- a/lexsurf.go
+++ b/lexsurf.go
@@ -86,7 +86,7 @@ func (h *handler) handle(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("unknown law"))
return
}
- http.Redirect(w, r, val.Url, 302)
+ http.Redirect(w, r, val.URL, 302)
} else {
query := r.URL.Query().Get("q")
if query != "" {
@@ -117,7 +117,7 @@ func (h *handler) handle(w http.ResponseWriter, r *http.Request) {
}
type law struct {
- Url string
+ URL string
Title string
Abbr string
Redir string