Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Need to emit CRLF between lines in the payload #6

Open
jkakar opened this issue Apr 2, 2014 · 0 comments
Open

Need to emit CRLF between lines in the payload #6

jkakar opened this issue Apr 2, 2014 · 0 comments

Comments

@jkakar
Copy link

jkakar commented Apr 2, 2014

If I've understood section 5 of the specification correctly each
line in the payload should be terminated with a CRLF:

        line        = key "=" value CRLF

It looks like this gem is using a newline and only for N-1 lines
emitted:

irb(main):020:0> OpenToken::KeyValueSerializer.serialize("foo" => "bar")
=> "foo=bar"
irb(main):021:0> OpenToken::KeyValueSerializer.serialize("foo" => "bar", "baz" => "quux")
=> "foo=bar\nbaz=quux"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant