Skip to content

Commit

Permalink
-fixed CGI headers in examples;
Browse files Browse the repository at this point in the history
-added a link to asyncgi in the README;
  • Loading branch information
kamchatka-volcano committed Oct 1, 2023
1 parent bcbacd6 commit d22754a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
<img height="372" src="doc/fcgi_responder_vs_libfcgi.png"/>
</p>

## Showcase
* [asyncgi](https://github.com/kamchatka-volcano/asyncgi/) - a web framework based on `fcgi_responder` and `Asio`

## Usage
### Processing requests from the web server
Expand Down Expand Up @@ -80,7 +82,7 @@ private:
///
void processRequest(fcgi::Request&&, fcgi::Response&& response) override
{
response.setData("HTTP/1.1 200 OK\r\n "
response.setData("HTTP/1.1 200 OK\r\n"
"Content-Type: text/html\r\n"
"\r\n"
"HELLO WORLD USING ASIO!");
Expand Down
2 changes: 1 addition & 1 deletion examples/asio_example/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class Connection : public fcgi::Responder{
///
void processRequest(fcgi::Request&&, fcgi::Response&& response) override
{
response.setData("HTTP/1.1 200 OK\r\n "
response.setData("Status: 200 OK\r\n"
"Content-Type: text/html\r\n"
"\r\n"
"HELLO WORLD USING ASIO!");
Expand Down
2 changes: 1 addition & 1 deletion examples/qt_example/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class FCGIGreeter : public QObject, public fcgi::Responder{
///
void processRequest(fcgi::Request&&, fcgi::Response&& response) override
{
response.setData("HTTP/1.1 200 OK\r\n "
response.setData("Status: 200 OK\r\n"
"Content-Type: text/html\r\n"
"\r\n"
"HELLO WORLD USING QT!");
Expand Down

0 comments on commit d22754a

Please sign in to comment.