fluent-plugin-parse_request_body 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ef0ac877afe06e963320f9466029549a512c953a2b9a7246ee79a550134909d3
|
|
4
|
+
data.tar.gz: 81de586be056b280f3cbe019930cefd4a5a3ab80b55967353f43dd08e9d27ca1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff50b4b62c1149eb142ee05549c40761c4c6b57f727dad8e39f6a8fa1193726ea243f288f45f96b82fcf6b16b761c50e85e45bbe246852404f9f02163401954c
|
|
7
|
+
data.tar.gz: 29e9a2e0d26f847458f4a9a8715a1072ba8161996cc14a8e2b30bb7b41ba93a897c19d21abd62847a5ad7de37e6ba36f180ec3a99b9a3dea131ff1f9bc963590
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |gem|
|
|
2
2
|
gem.name = 'fluent-plugin-parse_request_body'
|
|
3
|
-
gem.version = '0.0.
|
|
3
|
+
gem.version = '0.0.4'
|
|
4
4
|
gem.authors = ['EkiSong']
|
|
5
5
|
gem.email = ['yifriday0614@gmail.com']
|
|
6
6
|
gem.homepage = 'https://github.com/yifriday/fluent-plugin-parse_request_body.git'
|
|
@@ -101,6 +101,7 @@ module Fluent::Plugin
|
|
|
101
101
|
|
|
102
102
|
def add_query_params(body, record)
|
|
103
103
|
return if body.nil?
|
|
104
|
+
add_record_field(record)
|
|
104
105
|
body.split('&').each do |pair|
|
|
105
106
|
key, value = pair.split('=', 2).map { |i| CGI.unescape(i) }
|
|
106
107
|
next if (key.nil? || key.empty?) && (!permit_blank_key? || value.nil? || value.empty?)
|
|
@@ -115,7 +116,6 @@ module Fluent::Plugin
|
|
|
115
116
|
else
|
|
116
117
|
record[new_key] = value
|
|
117
118
|
end
|
|
118
|
-
add_record_field(record)
|
|
119
119
|
end
|
|
120
120
|
end
|
|
121
121
|
end
|