Wrong HTTP Response Headers from Builtin Server
Check for existing issues
- [X] Completed
Describe the bug / provide steps to reproduce it
Actual behaviour
Builtin server returns duplicated Content-Type and Content-Length headers:
-
Content-Lengthis duplicated (e.g.11743, 11743). -
Content-Typeis repeated-
text/plain, text/javascript -
text/html, text/html
-
Expected Behavior
-
Content-Lengthshould reflect the accurate response body length. -
Content-Typeshould be in the format:type/subtype; parameter*(e.g.text/html; charset=UTF-8), without duplication.
Steps to Reproduce
- Open a project folder in Acode.
- Launch
index.html. - Open a
fetchorXMLHttpRequestrequest ("GET" or "HEAD" method). - Inspect the response headers.
Environment
Device Information: WebView Info: Package Name: com.google.android.webview Version: 131.0.6778.135
App Info: Name: Acode Package Name: com.foxdebug.acodefree Version: 1.10.6 Version Code: 954
Device Info: Android Version: 14 Manufacturer: realme Model: RMX3998 Platform: Android Cordova Version: 13.0.0
Screen Info: Width: 360 Height: 800 Color Depth: 24
Additional Info: Language: en-GB User Agent: Mozilla/5.0 (Linux; Android 14; RMX3998 Build/UP1A.231005.007; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/131.0.6778.135 Mobile Safari/537.36 Texmux Version: googleplay.2024.10.30
If applicable, add mockups / screenshots regarding your vision
No response
If applicable, attach your Acode.log file to this issue.
Acode.log
It's fine for me, there is no such duplication
I've reinstalled the app from the PlayStore and even tested it on a different device, but the issue still persists.
Console newtork tab showing incorrect response headers
Relavent Files:
-
Return value of
require('meme-types').lookupisn't checked insendByExt&sendFile. -
Requires some debugging to verify headers.
Ok got it , it happens when making requests to local files not with the external urls
Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Acode, please let us know by commenting on this issue(i.e Bump!), and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 14 days. Thanks for your help!
Issue not resolved till.
Hi there! 👋 We're working to clean up our issue tracker by closing older issues that might not be relevant anymore. If you are able to reproduce this issue in the latest version of Acode, please let us know by commenting on this issue(i.e Bump!), and we will keep it open. If you can't reproduce it, feel free to close the issue yourself. Otherwise, we'll close it in 14 days. Thanks for your help!
This issue was closed because it has been inactive for 14 days since being marked as stale.