@quicktvui/web-cli 3.1.1 → 3.1.3

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/lib/DevServer.js CHANGED
@@ -36,6 +36,8 @@ const MIME_TYPES = {
36
36
  '.mp3': 'audio/mpeg',
37
37
  '.mp4': 'video/mp4',
38
38
  '.wav': 'audio/wav',
39
+ '.ogg': 'audio/ogg',
40
+ '.m4a': 'audio/mp4',
39
41
  '.map': 'application/json',
40
42
  '.bundle': 'application/javascript; charset=utf-8',
41
43
  '.txt': 'text/plain; charset=utf-8',
@@ -586,7 +588,12 @@ class DevServer {
586
588
  if (req.headers['if-modified-since']) {
587
589
  headers['if-modified-since'] = req.headers['if-modified-since']
588
590
  }
589
- // 标记请求来自代理(方便调试)
591
+ if (req.headers['content-type']) {
592
+ headers['content-type'] = req.headers['content-type']
593
+ }
594
+ if (req.headers['content-length']) {
595
+ headers['content-length'] = req.headers['content-length']
596
+ }
590
597
  headers['x-forwarded-for'] = req.socket.remoteAddress
591
598
  headers['x-forwarded-proto'] = protocol
592
599
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quicktvui/web-cli",
3
- "version": "3.1.1",
3
+ "version": "3.1.3",
4
4
  "description": "CLI tool for QuickTVUI web development v3 - delegate build & bundle loading",
5
5
  "author": "QuickTVUI Team",
6
6
  "license": "Apache-2.0",