Skip to content

Why nameTruncated is always false?! #373

Description

@yaneony

Using limits { fieldNameSize: 1 } and then

bb.on('field', (name, val, info) => {
      console.log(info)
});

for some reason info is always { nameTruncated: false, valueTruncated: false, encoding: '7bit', mimeType: 'text/plain' } even if field name is longer than 1 character.

Activity

  1. fuleinist commented on May 17, 2026

    @fuleinist

    PR ready

    Fix implemented and submitted: #383

    This adds fieldNameSize limit enforcement to the multipart parser, matching the behavior already present in the urlencoded parser. nameTruncated will now correctly report true when the field name exceeds the configured limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions