Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reponse header disordered after request sometimes #691

Open
flyinmind opened this issue Dec 24, 2020 · 0 comments
Open

Reponse header disordered after request sometimes #691

flyinmind opened this issue Dec 24, 2020 · 0 comments

Comments

@flyinmind
Copy link

Following codes, run many times, the response header disordered.

        public void onRequest(AsyncHttpServerRequest req, final AsyncHttpServerResponse resp) {

...
pool.execute(new Runnable() {
@OverRide
public void run() {
....
resp.send(fm.contentType(), fm.read());
resp.end();
}
});
}

Expected is:
// { "framework": "Vue"}

// (function(modules) { // webpackBootstrap
/
/ // The module cache
/******/ var installedModules = {};

Exactly response is:(Header is in body, and lost some content of the file)

HTTP/1.1 200 OK
Connection: Keep-Alive
Content-Length: 24589
Content-Type: application/javascript; charset=utf-8

bb94-450a7ea35ac1
Host: 127.0.0.1:8080
Accept-Encoding: gzip, deflate, br
Connection: keep-alive

__(moduleId) {
//
/
/ // Check if module is in cache
/******/ if(installedModules[moduleId]) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant