Skip to content

Commit

Permalink
bug fix: error on long multibyte post
Browse files Browse the repository at this point in the history
(twittering-start-http-ssl-session): add 'Expect: ' header field
for avoiding '417 Expectation Failed' HTTP response error. See
http://d.hatena.ne.jp/imait/20091228/1262004813 and
http://www.escafrace.co.jp/blog/09/10/16/1008
  • Loading branch information
IMAI Toshiyuki authored and hayamiz committed Dec 28, 2009
1 parent 0871656 commit ecd63d8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ChangeLog
@@ -1,6 +1,10 @@
2009-12-29 Yuto Hayamizu <y.hayamizu@gmail.com>

* twittering-mode.el: load mule-ucs if needed (emacs21)
(twittering-start-http-ssl-session): add 'Expect: ' header field
for avoiding '417 Expectation Failed' HTTP response error. See
http://d.hatena.ne.jp/imait/20091228/1262004813 and
http://www.escafrace.co.jp/blog/09/10/16/1008

2009-12-28 Yuto Hayamizu <y.hayamizu@gmail.com>

Expand Down
3 changes: 3 additions & 0 deletions twittering-mode.el
Expand Up @@ -630,6 +630,9 @@ Z70Br83gcfxaz2TE4JaY0KNA4gGK7ycH8WUBikQtBmV1UsCGECAhX2xrD2yuCRyv
;; TODO: use curl
(let* ((request (twittering-make-http-request
method headers host port path parameters))
(headers (if (assoc "Expect" headers)
headers
(cons '("Expect" . "") headers)))
(curl-args
`("--include" "--silent"
,@(mapcan (lambda (pair)
Expand Down

0 comments on commit ecd63d8

Please sign in to comment.