src/net/http/header.js
Function httpHeader
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function httpHeader(opts) {
opts = opts || {};
var that = {};
var headers = opts.headers || [];
- Create a ticketCreate a ticket
Function fromData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
httpHeader.fromData = function (data) {
var dataParts = (data || "")
.trim()
.replace(/\r\n/g, "\n") // Normalize line endings
.split("\n\n"); // Separate header from body
- Create a ticketCreate a ticket