Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Commit

Permalink
fix % bug in json output
Browse files Browse the repository at this point in the history
  • Loading branch information
railsagainstignorance committed Feb 13, 2017
1 parent ed37ef4 commit 4c1ef03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web-server.go
Expand Up @@ -133,15 +133,15 @@ func pullquotesJsonHandler(w http.ResponseWriter, r *http.Request) {

w.Header().Set("Content-Type", "application/json")
w.Header().Set("Access-Control-Allow-Origin", "*")
fmt.Fprintf(w, string(pqJsonB))
w.Write(pqJsonB)
}

func rssHandler(w http.ResponseWriter, r *http.Request) {
maxItems := 20
rssText := rss.Generate(maxItems)
w.Header().Set("Content-Type", "application/rss+xml")
w.Header().Set("Access-Control-Allow-Origin", "*")

fmt.Fprintf(w, *rssText)
}

Expand Down

0 comments on commit 4c1ef03

Please sign in to comment.