Skip to content

Commit c03b42d

Browse files
committed
Fix little bug in length limit
Signed-off-by: Sheogorath <[email protected]>
1 parent ffc28e0 commit c03b42d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function newNote (req, res, next) {
151151
var body = ''
152152
if (req.body && req.body.length > config.documentMaxLength) {
153153
return response.errorTooLong(res)
154-
} else {
154+
} else if (req.body) {
155155
body = req.body
156156
}
157157
body = body.replace(/[\r]/g, '')

0 commit comments

Comments
 (0)