Skip to content

Commit e5b6da4

Browse files
committed
0.7.20 banned list autoupdate + minor fix on proxy and stats
1 parent 20e9f5f commit e5b6da4

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ _data/
1313
_private.js
1414
_private.json
1515
a_private.go
16+
banned.list
1617
#
1718

1819
#

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

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

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

8-
**version 0.7.18**
8+
**version 0.7.20**
99

1010
1. [Count LOC (lines of code) online from github/gitlab repos or zipped uploaded folder](#count-loc-online)
1111
2. [CORS proxy](#cors-proxy)

_utils/stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func AddHit(w http.ResponseWriter, r *http.Request,
1919
if host == "" {
2020
host = " ? "
2121
}
22-
quest := strings.Split(r.URL.String(), "v1/")[1]
22+
quest := r.Form.Get("quest")
2323
if mode == "production" {
2424
hLog.Println(ip, sv, host, quest)
2525
hitUrl := "http://localhost:3970/addHit/" + service

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
we "github.com/jolav/codetabs/weather"
2525
)
2626

27-
var version = "0.7.19"
27+
var version = "0.7.20"
2828
var when = "undefined"
2929

3030
type Conf struct {

proxy/proxy.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ func (p *proxy) Router(w http.ResponseWriter, r *http.Request) {
3535
u.BadRequest(w, r)
3636
return
3737
}
38-
p.quest = strings.Split(r.URL.RawQuery, "quest=")[1]
3938
p.doProxyRequest(w, r)
4039
}
4140

www/_public/templates/version.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<h2 class="centerText">
33
API doc
44
<small>
5-
<small>(version 0.7.18)</small>
5+
<small>(version 0.7.20)</small>
66
</small>
77
</h2>
88
<!-- End -->

0 commit comments

Comments
 (0)