Skip to content

kore  #11

@vladimir-cicovic

Description

@vladimir-cicovic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions