We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e24cfd8 commit 5a6bef2Copy full SHA for 5a6bef2
2 files changed
emoProxy.go
@@ -323,7 +323,7 @@ func makeApiRequest(r *http.Request) string {
323
324
if conf.EnableReplacements {
325
log.Println("Replacements enabled, checking for replacements...")
326
- body = runReplacementsAndReturnModifiedBody(body)
+ body = runReplacementsAndReturnModifiedBody(body, r)
327
}
328
329
if useDatabaseAndAPI {
replacements.go
@@ -9,7 +9,7 @@ import (
9
"net/url"
10
)
11
12
-func runReplacementsAndReturnModifiedBody(body []byte) []byte {
+func runReplacementsAndReturnModifiedBody(body []byte, r *http.Request) []byte {
13
typedBody := QueryResponse{}
14
decoder := json.NewDecoder(bytes.NewReader(body))
15
decoder.DisallowUnknownFields()
0 commit comments