Skip to content

Commit f1afe83

Browse files
authored
Merge pull request #2338 from Gabriel-H4/fix/json_macros_http_codes
Fix typo in json_macros.h for HTTP Status Code body return check
2 parents 464b2df + ebf53f2 commit f1afe83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/webserver/json_macros.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
})
224224

225225
#define JSON_SEND_OBJECT_CODE(object, code)({ \
226-
if((code) < 100 || (code) == 204 || (code) == 304) \
226+
if((code) < 200 || (code) == 204 || (code) == 304) \
227227
{ \
228228
/* HTTP codes 1xx, 204 and 304 must not have a body */ \
229229
send_http_code(api, NULL, code, ""); \

0 commit comments

Comments
 (0)