aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-06-02 00:09:35 +0200
committerGravatar Tom Willemse2013-06-02 00:09:35 +0200
commit024b66d4c7e2e0ffea6c14b4343eb8f89b074efd (patch)
tree2372695f574dcc08115ab63c95c22edb2ba54450
parentf1e8797a66f5245192ef1473fbc0a99ebe23f5bc (diff)
downloadscrumelo-024b66d4c7e2e0ffea6c14b4343eb8f89b074efd.tar.gz
scrumelo-024b66d4c7e2e0ffea6c14b4343eb8f89b074efd.zip
Fix typos, remove junk
-rw-r--r--scrumelo.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/scrumelo.el b/scrumelo.el
index 49b0ae7..74564f7 100644
--- a/scrumelo.el
+++ b/scrumelo.el
@@ -160,7 +160,7 @@
(defun scrumelo--send-json (httpcon obj)
"Respond to HTTPCON with OBJ converted to a json structure."
- (elnode-http-start httpcon 200 '("Contaent-Type" . "text/json"))
+ (elnode-http-start httpcon 200 '("Content-Type" . "text/json"))
(elnode-http-return httpcon (json-encode obj)))
(defun scrumelo-story-json (httpcon)
@@ -168,7 +168,6 @@
(let* ((story (match-string 1 (elnode-http-mapping httpcon)))
(buffer (find-file-noselect scrumelo-project-file))
(entry (cdr (org-id-find story))))
- (message "HI: %s" story)
(with-current-buffer buffer
(goto-char entry)
(scrumelo--send-json
@@ -185,7 +184,7 @@
("^/js/scrumelo.js" . ,(elnode-make-send-file
(concat scrumelo--base-dir "js/scrumelo.js")))
("^/stories/new/$" . scrumelo-new-story)
- ("^/stories/\\([a-z0-9:-]+\\)/" . scrumelo-story-json))))
+ ("^/stories/\\([a-z0-9:-]+\\)/$" . scrumelo-story-json))))
(elnode-start 'scrumelo-handler :port 8028 :host "localhost")