From 024b66d4c7e2e0ffea6c14b4343eb8f89b074efd Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 2 Jun 2013 00:09:35 +0200 Subject: Fix typos, remove junk --- scrumelo.el | 5 ++--- 1 file 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") -- cgit v1.2.3-54-g00ecf