Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Jan 16, 2024
1 parent 7e04700 commit a295b1f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## Unreleased
## v1.0.1 - 2024-01-16

- Fixed an issue where `handle_request` failed to send a response.

Expand Down
2 changes: 1 addition & 1 deletion gleam.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = "cgi"
version = "1.0.0"
version = "1.0.1"
description = "Common Gateway Interface (CGI) in Gleam"
licences = ["Apache-2.0"]
repository = { type = "github", user = "lpil", repo = "cgi" }
Expand Down
7 changes: 0 additions & 7 deletions src/cgi.gleam
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,6 @@ import gleam/http
import gleam/http/request.{type Request, Request}
import gleam/http/response.{type Response, Response}

// TODO: Remove
pub fn main() {
use request <- handle_request
let body = "Hello! You send me this request:\n\n" <> string.inspect(request)
Response(201, [#("content-type", "text/plain")], body)
}

/// Load a CGI HTTP request and dispatch a response.
///
/// CGI works over stdin and stdout, so be sure your code does not use them for
Expand Down

0 comments on commit a295b1f

Please sign in to comment.