From d595a64393eda9f1757a41add62383f9a5160bfa Mon Sep 17 00:00:00 2001 From: Gaurav Saini Date: Wed, 2 Jun 2021 23:17:59 +0530 Subject: [PATCH] Fixed case for Fn-headers according to the container contract Added Fn-Fdk-Version header to response --- lib/fdk/context.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/fdk/context.rb b/lib/fdk/context.rb index 8b2a00c..5939ef8 100644 --- a/lib/fdk/context.rb +++ b/lib/fdk/context.rb @@ -51,6 +51,7 @@ def each(&block) # Represents outbound HTTP headers class OutHeaders < InHeaders def initialize(headers, key_in_fn) + headers["Fn-Fdk-Version"] = ["fdk-ruby/#{FDK::VERSION}"] super(headers, key_in_fn) end