Skip to content

Commit

Permalink
Prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
amacnair committed Jul 5, 2023
1 parent 118b577 commit 4bb1360
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.2
1.13.0
8 changes: 4 additions & 4 deletions module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package sigsci

const version = "1.12.2"
const version = "1.13.0"

0 comments on commit 4bb1360

Please sign in to comment.