Skip to content

Commit 5a6bef2

Browse files
fixed so that it builds
1 parent e24cfd8 commit 5a6bef2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

emoProxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ func makeApiRequest(r *http.Request) string {
323323

324324
if conf.EnableReplacements {
325325
log.Println("Replacements enabled, checking for replacements...")
326-
body = runReplacementsAndReturnModifiedBody(body)
326+
body = runReplacementsAndReturnModifiedBody(body, r)
327327
}
328328

329329
if useDatabaseAndAPI {

replacements.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"net/url"
1010
)
1111

12-
func runReplacementsAndReturnModifiedBody(body []byte) []byte {
12+
func runReplacementsAndReturnModifiedBody(body []byte, r *http.Request) []byte {
1313
typedBody := QueryResponse{}
1414
decoder := json.NewDecoder(bytes.NewReader(body))
1515
decoder.DisallowUnknownFields()

0 commit comments

Comments
 (0)