Skip to content

Commit

Permalink
0.7.20 banned list autoupdate + minor fix on proxy and stats
Browse files Browse the repository at this point in the history
  • Loading branch information
jolav committed Feb 6, 2023
1 parent 20e9f5f commit e5b6da4
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ _data/
_private.js
_private.json
a_private.go
banned.list
#

#
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

![Version](https://img.shields.io/badge/version-0.7.18-orange.svg)
![Version](https://img.shields.io/badge/version-0.7.20-orange.svg)
![Maintained YES](https://img.shields.io/badge/Maintained%3F-yes-green.svg)
![Ask Me Anything !](https://img.shields.io/badge/Ask%20me-anything-1abc9c.svg)

# ![logo](https://github.com/jolav/codetabs/blob/master/www/_public/icons/ct/ct64r.png?raw=true) **ONLINE TOOLS ([codetabs.com](https://codetabs.com))**

**version 0.7.18**
**version 0.7.20**

1. [Count LOC (lines of code) online from github/gitlab repos or zipped uploaded folder](#count-loc-online)
2. [CORS proxy](#cors-proxy)
Expand Down
2 changes: 1 addition & 1 deletion _utils/stats.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func AddHit(w http.ResponseWriter, r *http.Request,
if host == "" {
host = " ? "
}
quest := strings.Split(r.URL.String(), "v1/")[1]
quest := r.Form.Get("quest")
if mode == "production" {
hLog.Println(ip, sv, host, quest)
hitUrl := "http://localhost:3970/addHit/" + service
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
we "github.com/jolav/codetabs/weather"
)

var version = "0.7.19"
var version = "0.7.20"
var when = "undefined"

type Conf struct {
Expand Down
1 change: 0 additions & 1 deletion proxy/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func (p *proxy) Router(w http.ResponseWriter, r *http.Request) {
u.BadRequest(w, r)
return
}
p.quest = strings.Split(r.URL.RawQuery, "quest=")[1]
p.doProxyRequest(w, r)
}

Expand Down
2 changes: 1 addition & 1 deletion www/_public/templates/version.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<h2 class="centerText">
API doc
<small>
<small>(version 0.7.18)</small>
<small>(version 0.7.20)</small>
</small>
</h2>
<!-- End -->

0 comments on commit e5b6da4

Please sign in to comment.