We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a10469 commit ddbab8dCopy full SHA for ddbab8d
lib/fdk/context.rb
@@ -51,6 +51,7 @@ def each(&block)
51
# Represents outbound HTTP headers
52
class OutHeaders < InHeaders
53
def initialize(headers, key_in_fn)
54
+ headers["Fn-Fdk-Version"] = ["fdk-ruby/#{FDK::VERSION}"]
55
super(headers, key_in_fn)
56
end
57
tests/test_fdk.rb
@@ -66,6 +66,7 @@ def test_handle_simple_request()
66
assert_equal 200, resp.code.to_i
67
assert_equal "\"hello world\"", resp.body
68
assert_equal "application/json", resp["content-type"]
69
+ assert_equal "fdk-ruby/#{FDK::VERSION}", resp["Fn-Fdk-Version"]
70
}
71
72
0 commit comments