mythix 2.8.13 → 2.8.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mythix",
3
- "version": "2.8.13",
3
+ "version": "2.8.15",
4
4
  "description": "Mythix is a NodeJS web-app framework",
5
5
  "main": "src/index",
6
6
  "scripts": {
@@ -447,7 +447,10 @@ class HTTPServer {
447
447
  // eslint-disable-next-line new-cap
448
448
  let app = Express();
449
449
 
450
- app.use(Express.raw({ type: 'application/json' }));
450
+ app.use(Express.raw({
451
+ type: 'application/json',
452
+ limit: Nife.get(options, 'uploads.limits.fileSize', DEFAULT_FILE_UPLOAD_SIZE_LIMIT),
453
+ }));
451
454
 
452
455
  // Store _rawBody for request
453
456
  app.use((request, response, next) => {
@@ -190,7 +190,7 @@ class HTTPInterface {
190
190
 
191
191
  let finalOptions = Nife.extend({}, options || {}, { url });
192
192
 
193
- if (this.defaultURL && finalOptions.url.charAt(0) === '/')
193
+ if (this.defaultURL && !(/^https?:\/\//i).test(finalOptions.url))
194
194
  finalOptions.url = this.defaultURL + finalOptions.url;
195
195
 
196
196
  if (method)