Skip to content

Commit d699a4b

Browse files
authored
chore:update note-c (#63)
1 parent 7aeb272 commit d699a4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/note-c/n_request.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ J *NoteTransaction(J *req)
352352

353353
// Add the user agent object if appropriate
354354
#ifndef NOTE_DISABLE_USER_AGENT
355-
if (!JIsPresent(req, "body") && (strcmp(reqType, "hub.set") == 0 || strcmp(cmdType, "hub.set"))) {
355+
if (!JIsPresent(req, "body") && (strcmp(reqType, "hub.set") == 0)) {
356356
J *body = NoteUserAgent();
357357
if (body != NULL) {
358358
JAddItemToObject(req, "body", body);

0 commit comments

Comments
 (0)