Skip to content

Commit

Permalink
change a regexp pattern for HTTP response status line; same as 'twitt…
Browse files Browse the repository at this point in the history
…ering-http-get-default-sentinel'.
  • Loading branch information
yata committed Dec 29, 2009
1 parent 81018cf commit 120cd58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Expand Up @@ -8,6 +8,11 @@
* twittering-mode.el (twittering-http-post-default-sentinel): Add
`debug-printf' same as `twittering-http-get-default-sentinel'.

* twittering-mode.el (twittering-http-post-default-sentinel):
Change a regexp pattern for HTTP response status line; same as
`twittering-http-get-default-sentinel'.
(twittering-http-get-list-index-sentinel): Likewise.

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

* twittering-mode.el: load mule-ucs if needed (emacs21)
Expand Down
4 changes: 2 additions & 2 deletions twittering-mode.el
Expand Up @@ -846,7 +846,7 @@ Available keywords:
(temp-buffer noninteractive proc stat &optional suc-msg)
(unwind-protect
(let ((header (twittering-get-response-header temp-buffer)))
(if (not (string-match "HTTP/1\.[01] \\([a-z0-9 ]+\\)\r?\n" header))
(if (not (string-match "HTTP/1\.[01] \\([a-zA-Z0-9 ]+\\)\r?\n" header))
(setq twittering-list-index-retrieved "Failure: Bad http response.")
(let ((status (match-string-no-properties 1 header))
(indexes nil))
Expand Down Expand Up @@ -1093,7 +1093,7 @@ PARAMETERS is alist of URI parameters.
(let ((header (twittering-get-response-header temp-buffer))
;; (body (twittering-get-response-body temp-buffer)) not used now.
(status nil))
(if (string-match "HTTP/1\.1 \\([a-z0-9 ]+\\)\r?\n" header)
(if (string-match "HTTP/1\.[01] \\([a-zA-Z0-9 ]+\\)\r?\n" header)
(setq status (match-string-no-properties 1 header))
(setq status
(progn (string-match "^\\([^\r\n]+\\)\r?\n" header)
Expand Down

0 comments on commit 120cd58

Please sign in to comment.