Skip to content

Commit b30742c

Browse files
committed
fix: 'value' instead of 'val'
1 parent 4f82138 commit b30742c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func includesFile(input string) bool {
8080
// Check against file headers
8181
for i := 0; i < len(fileHeaders); i++ {
8282
if bytes.HasPrefix(decoded, fileHeaders[i]) {
83-
log.Println("File detected with header" + string(fileHeaders[i]))
83+
log.Println("File detected with header: " + string(fileHeaders[i]))
8484
return true
8585
}
8686
}
@@ -219,7 +219,7 @@ func main() {
219219
key := r.URL.Query().Get("key")
220220

221221
var data struct {
222-
Val string `json:"val"`
222+
Val string `json:"value"`
223223
}
224224
err = json.NewDecoder(r.Body).Decode(&data)
225225
if err != nil {

0 commit comments

Comments
 (0)