Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

protocol tweaks #9

Closed
wants to merge 1 commit into from
Closed

protocol tweaks #9

wants to merge 1 commit into from

Conversation

evanmcc
Copy link

@evanmcc evanmcc commented Sep 13, 2017

  • allow PUT as an HTTP verb
  • as per RFC2616, trailing CRLF is disallowed.

Some fixing issues I ran into running against a custom, elli-based server at work.

Copy link
Owner

@lpgauth lpgauth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you fix the missing CRLF for headers and add a test for PUT verb?

@@ -44,7 +44,7 @@ request(Method, Path, Headers, Host, undefined) ->
<<"Host: ">>, Host,
<<"\r\nConnection: Keep-alive\r\n">>,
<<"User-Agent: buoy\r\n">>,
format_headers(Headers), <<"\r\n">>];
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is actually required by rfc2616.

        generic-message = start-line
                          *(message-header CRLF)
                          CRLF
                          [ message-body ]

- allow PUT as an HTTP verb
- as per RFC2616, trailing CRLF is disallowed.
@lpgauth
Copy link
Owner

lpgauth commented Dec 12, 2017

Fixed by #8

@lpgauth lpgauth closed this Dec 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants