Created
September 24, 2015 09:27
-
-
Save Leonidas-from-XIV/c4a6fb02bf8cd8288f5e to your computer and use it in GitHub Desktop.
Aleph invalid data
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns twoohfour.core | |
(:require [aleph.http :as http]) | |
(:gen-class)) | |
(defn handler [req] | |
{:status 204 | |
:headers {"content-type" "text/plain"} | |
:body "Something"}) | |
(defn -main | |
[& _] | |
(prn "Starting server...") | |
(http/start-server handler {:port 8080})) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% curl -i -X GET http://127.0.0.1:8080/ | |
HTTP/1.1 204 No Content | |
Content-Type: text/plain | |
Server: Aleph/0.4.0 | |
Connection: Keep-Alive | |
Date: Thu, 24 Sep 2015 09:25:05 GMT | |
content-length: 9 | |
% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment