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

kore #11

Open
vladimircicovic opened this issue Mar 2, 2018 · 0 comments
Open

kore #11

vladimircicovic opened this issue Mar 2, 2018 · 0 comments

Comments

@vladimircicovic
Copy link

this:
#include <kore/kore.h>
#include <kore/http.h>

int page(struct http_request *);

int
page(struct http_request *req)
{
http_response(req, 200, "Hello World", 12);
return (KORE_RESULT_OK);
}

does not work.
When I do:
curl -k https://localhost:8888
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: " to save to a file

But if I do this:
#include <kore/kore.h>
#include <kore/http.h>

int page(struct http_request *);

int
page(struct http_request *req)
{
http_response(req, 200, "Hello World", 11);
return (KORE_RESULT_OK);
}

Change at size of Hello World ( I guess this is because SSL termination with \n or similar)
It works fine.

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