Skip to content

Commit

Permalink
file_single_chunk: use URI::RFC2396_PARSER due to suppress obsoleted …
Browse files Browse the repository at this point in the history
…message

Signed-off-by: Shizuo Fujita <[email protected]>
  • Loading branch information
Watson1978 committed Jan 20, 2025
1 parent f3c8f35 commit 0aade54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fluent/plugin/buffer/file_single_chunk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ def file_rename(file, old_path, new_path, callback = nil)
def encode_key(metadata)
k = @key ? metadata.variables[@key] : metadata.tag
k ||= ''
URI::DEFAULT_PARSER.escape(k, ESCAPE_REGEXP)
URI::RFC2396_PARSER.escape(k, ESCAPE_REGEXP)
end

def decode_key(key)
URI::DEFAULT_PARSER.unescape(key)
URI::RFC2396_PARSER.unescape(key)
end

def create_new_chunk(path, metadata, perm)
Expand Down

0 comments on commit 0aade54

Please sign in to comment.