芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/app.optimyar.com/backend/node_modules/request-compose/request/json.js
module.exports = (json) => ({options, options: {headers}}) => { json = typeof json === 'object' ? JSON.stringify(json) : (json || '') var header = Object.keys(headers) .find((name) => name.toLowerCase() === 'content-type') if (!header) { headers['content-type'] = 'application/json' } return {options, body: json} }