Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
search failed: ^M #1
patch offered to:
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Fix for the issue when retrieving access-token and access-token-secret
diff --git a/oauth.el b/oauth.el --- a/oauth.el +++ b/oauth.el @@ -320,7 +320,9 @@ (when linebreak (delete-region (point-min) linebreak))) (goto-char (point-max)) - (delete-region (point-min) (+ (search-backward "\r\n") 2)) + (let ((line-end (search-backward "\r\n" nil t nil))) + (when line-end + (delete-region (point-min) (+ line-end 2)))) (loop for pair in (mapcar (lambda (str) (split-string str "=")) (split-string (buffer-substring (point-min) (point-max)) "&"))