Skip to content

Commit

Permalink
close #69
Browse files Browse the repository at this point in the history
  • Loading branch information
chigusa committed May 20, 2020
1 parent 4964d5f commit 6494630
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ sudo: required
go:
- "1.14"
env:
- GO111MODULE=on
- GO111MODULE=on NODE_VERSION=14.2.0
before_install:
- nvm install $NODE_VERSION
services: docker
script:
- make
Expand Down
1 change: 0 additions & 1 deletion config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@ out_put_path: /tmp
feature:
use_native_flv_parser: false
live_rooms:
- https://play.lang.live/4389069
2 changes: 1 addition & 1 deletion src/servers/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func parseLiveAction(writer http.ResponseWriter, r *http.Request) {
func addLives(writer http.ResponseWriter, r *http.Request) {
b, _ := ioutil.ReadAll(r.Body)
info := liveSlice(make([]*live.Info, 0))
gjson.GetBytes(b, "#").ForEach(func(key, value gjson.Result) bool {
gjson.ParseBytes(b).ForEach(func(key, value gjson.Result) bool {
isListen := value.Get("listen").Bool()
u, _ := url.Parse(value.Get("url").String())
if live, err := live.New(u, instance.GetInstance(r.Context()).Cache); err == nil {
Expand Down

0 comments on commit 6494630

Please sign in to comment.