File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
lib/executor/src/executors Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -178,6 +178,19 @@ impl HTTPSubgraphExecutor {
178178
179179 if let Some ( extensions) = & execution_request. extensions {
180180 let mut first = true ;
181+ if let Some ( hmac_bytes) = hmac_signature_ext {
182+ if first {
183+ body. put ( FIRST_EXTENSION_STR ) ;
184+ first = false ;
185+ } else {
186+ body. put ( COMMA ) ;
187+ }
188+ body. put ( self . config . hmac_signature . extension_name . as_bytes ( ) ) ;
189+ let hmac_hex = hex:: encode ( hmac_bytes) ;
190+ body. put ( QUOTE ) ;
191+ body. put ( hmac_hex. as_bytes ( ) ) ;
192+ body. put ( QUOTE ) ;
193+ }
181194 for ( extension_name, extension_value) in extensions {
182195 if first {
183196 body. put ( FIRST_EXTENSION_STR ) ;
@@ -197,19 +210,6 @@ impl HTTPSubgraphExecutor {
197210 } ) ?;
198211 body. put ( value_str. as_bytes ( ) ) ;
199212 }
200- if let Some ( hmac_bytes) = hmac_signature_ext {
201- if first {
202- body. put ( COMMA ) ;
203- body. put ( FIRST_EXTENSION_STR ) ;
204- } else {
205- body. put ( COMMA ) ;
206- }
207- body. put ( self . config . hmac_signature . extension_name . as_bytes ( ) ) ;
208- let hmac_hex = hex:: encode ( hmac_bytes) ;
209- body. put ( QUOTE ) ;
210- body. put ( hmac_hex. as_bytes ( ) ) ;
211- body. put ( QUOTE ) ;
212- }
213213 }
214214
215215 body. put ( CLOSE_BRACE ) ;
You can’t perform that action at this time.
0 commit comments