Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F34132242
Command-Line Input
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
CDanis
Mar 2 2021, 9:48 PM
2021-03-02 21:48:49 (UTC+0)
Size
869 B
Referenced Files
None
Subscribers
None
Command-Line Input
View Options
if (options.headers_to_fields) {
_.forEach(options.headers_to_fields, (field, header) => {
if (
(_.has(schema, fieldNameToSchemaName(field)) ||
(_.has(schema, fieldNameToSchemaName(parentOfField(field))) &&
_.get(schema, fieldNameToSchemaName(parentOfField(field)) + '.type') === 'object')) &&
!_.has(event, field) &&
context.req.headers[header]
) {
_.set(
event, field,
context.req.headers[header].substring(0, maxHeaderLength)
);
logger.trace(`Set ${field} in ${eventRepr(event, context)}`);
}
});
}
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8906812
Default Alt Text
Command-Line Input (869 B)
Attached To
Mode
P14571 Command-Line Input
Attached
Detach File
Event Timeline
Log In to Comment