Post trigger test
This commit is contained in:
parent
f0735abb32
commit
9632d7f2b6
3
build.sh
3
build.sh
@ -4,6 +4,7 @@ dir=$1
|
|||||||
|
|
||||||
go get -u git.townsourced.com/townsourced/ironsmith
|
go get -u git.townsourced.com/townsourced/ironsmith
|
||||||
|
|
||||||
cd $dir/src/git.townsourced.com/townsourced/ironsmith
|
ls $dir
|
||||||
|
#cd $dir/src/git.townsourced.com/townsourced/ironsmith
|
||||||
|
|
||||||
go-bindata web/... && go build -a -v -o ironsmith
|
go-bindata web/... && go build -a -v -o ironsmith
|
||||||
|
3
json.go
3
json.go
@ -6,6 +6,7 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"log"
|
"log"
|
||||||
@ -84,6 +85,8 @@ func parseInput(r *http.Request, result interface{}) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fmt.Printf("JSON Input: %s\n", buff)
|
||||||
|
|
||||||
if lr.N == 0 {
|
if lr.N == 0 {
|
||||||
return errInputTooLarge
|
return errInputTooLarge
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user