Skip to content

Commit d42e09d

Browse files
committed
Fix
1 parent 5f29dea commit d42e09d

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

lib/executor/src/executors/http.rs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)