Skip to content

allow longer http methods for service-specific custom methods#12311

Closed
gfx wants to merge 1 commit into
curl:masterfrom
gfx:longer_http_method
Closed

allow longer http methods for service-specific custom methods#12311
gfx wants to merge 1 commit into
curl:masterfrom
gfx:longer_http_method

Conversation

@gfx

@gfx gfx commented Nov 13, 2023

Copy link
Copy Markdown
Contributor

Hi, team! Looks like #10720 has accidentally added a new limitation to the length of HTTP methods to 11, which affects our internal use of curl(1).

This PR doubles the limitation, which is large enough for our usage. Can you take a look at it?

  • Checked whether it works for our usage

@github-actions github-actions Bot added the HTTP label Nov 13, 2023
@jay

jay commented Nov 13, 2023

Copy link
Copy Markdown
Member

I think this a good idea. The longest registered method UPDATEREDIRECTREF is 17 characters long. By custom methods do you mean methods not registered?

@gfx

gfx commented Nov 13, 2023

Copy link
Copy Markdown
Contributor Author

@jay

Thank you for the additional motivation to change the current limitation!

Our custom methods won't be registered because they are used only in our internal services. The max length of our methods is 18 bytes, so I think 23 is large enough for those who use custom, unregistered methods.

@jay jay closed this in 26e5424 Nov 13, 2023
@jay

jay commented Nov 13, 2023

Copy link
Copy Markdown
Member

Thanks

@gfx gfx deleted the longer_http_method branch December 15, 2023 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants