diff --git a/CHANGELOG.md b/CHANGELOG.md index 1c88862..de58475 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Golang Module Release Notes -## 1.12.2 2023-06-26 +## 1.13.0 2023-07-06 -* Added `ExtendContentTypes` config option to send request body of any content-type to agent for inspection +* Added new module configuration option for more granular inspection ## 1.12.1 2023-02-24 diff --git a/LICENSE.md b/LICENSE.md index b7df6dc..a01ce7d 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -2,7 +2,7 @@ The MIT License (MIT) -Copyright (c) 2019-2022 Signal Sciences Corp. +Copyright (c) 2019-2023 Signal Sciences Corp. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/VERSION b/VERSION index 6b89d58..feaae22 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.12.2 +1.13.0 diff --git a/module.go b/module.go index 88a04b4..ac214c6 100644 --- a/module.go +++ b/module.go @@ -375,6 +375,10 @@ func shouldReadBody(req *http.Request, m *Module) bool { } } + if m.config.extendContentTypes { + return true + } + // only read certain types of content if inspectableContentType(req.Header.Get("Content-Type")) { return true @@ -385,10 +389,6 @@ func shouldReadBody(req *http.Request, m *Module) bool { return true } - if m.config.extendContentTypes { - return true - } - // read the body if there are multiple Content-Type headers if len(req.Header.Values("Content-Type")) > 1 { return true diff --git a/version.go b/version.go index f82a940..bc6f60f 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package sigsci -const version = "1.12.2" +const version = "1.13.0"