fluffy – Diff between revs 1 and 2

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 1 Rev 2
Line 150... Line 150...
150 { 150 {
151 key: certificates.privateKey, 151 key: certificates.privateKey,
152 cert: certificates.certificate, 152 cert: certificates.certificate,
153 }, 153 },
154 (request, response) => { 154 (request, response) => {
155 -  
156 // Configuration path requested, so send the server configuration if allowed. 155 // Configuration path requested, so send the server configuration if allowed.
157 if(config.configuration.enable === true && 156 if(config.configuration.enable === true &&
158 url.parse(request.url, true).path === 157 url.parse(request.url, true).path ===
159 config.configuration.path) { 158 config.configuration.path) {
160 const address = request.socket.address(); 159 const address = request.socket.address();
Line 165... Line 164...
165 response.setHeader('Content-Type', 'application/json'); 164 response.setHeader('Content-Type', 'application/json');
166 response.end(JSON.stringify(config)); 165 response.end(JSON.stringify(config));
167 return; 166 return;
168 } 167 }
Line -... Line 168...
-   168
169 169 // Process and cache the resource.
170 httpcache(request, response, () => { 170 httpcache(request, response, () => {
171 new Handler().process(config, request, response, root) 171 new Handler().process(config, request, response, root)
172 .on('log', (data) => { 172 .on('log', (data) => {
173 log.log(data.severity, data.message); 173 log.log(data.severity, data.message);